blob: eabaffec4db22343f31c78749d5854eeb20453c3 [file] [log] [blame]
// Copyright 2023 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SAMPLES_HELPERS_WIN32_COM_FACTORY_H_
#define SAMPLES_HELPERS_WIN32_COM_FACTORY_H_
struct IXpsOMObjectFactory;
// Factory for COM instances.
class ComFactory final {
public:
ComFactory();
~ComFactory();
IXpsOMObjectFactory* GetXpsOMObjectFactory();
private:
bool Initialize();
bool initialized_ = false;
IXpsOMObjectFactory* xps_om_object_factory_ = nullptr;
};
#endif // SAMPLES_HELPERS_WIN32_COM_FACTORY_H_