aboutsummaryrefslogtreecommitdiff
path: root/xfa/fgas/font/cfgas_gemodule.h
blob: 2e8901742aae2c04bdd1fd68b0bb299bfcb89484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2020 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef XFA_FGAS_FONT_CFGAS_GEMODULE_H_
#define XFA_FGAS_FONT_CFGAS_GEMODULE_H_

#include <memory>

class CFGAS_FontMgr;

class CFGAS_GEModule {
 public:
  static void Create();
  static void Destroy();
  static CFGAS_GEModule* Get();

  CFGAS_FontMgr* GetFontMgr() { return font_mgr_.get(); }

 private:
  CFGAS_GEModule();
  ~CFGAS_GEModule();

  std::unique_ptr<CFGAS_FontMgr> font_mgr_;
};

#endif  // XFA_FGAS_FONT_CFGAS_GEMODULE_H_