OLD | NEW |
---|---|
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_FPDFAPI_INCLUDE_CPDF_MODULEMGR_H_ | 7 #ifndef CORE_FPDFAPI_INCLUDE_CPDF_MODULEMGR_H_ |
8 #define CORE_FPDFAPI_INCLUDE_CPDF_MODULEMGR_H_ | 8 #define CORE_FPDFAPI_INCLUDE_CPDF_MODULEMGR_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 CCodec_JpegModule* GetJpegModule(); | 49 CCodec_JpegModule* GetJpegModule(); |
50 CCodec_JpxModule* GetJpxModule(); | 50 CCodec_JpxModule* GetJpxModule(); |
51 CCodec_Jbig2Module* GetJbig2Module(); | 51 CCodec_Jbig2Module* GetJbig2Module(); |
52 CCodec_IccModule* GetIccModule(); | 52 CCodec_IccModule* GetIccModule(); |
53 CCodec_FlateModule* GetFlateModule(); | 53 CCodec_FlateModule* GetFlateModule(); |
54 | 54 |
55 private: | 55 private: |
56 CPDF_ModuleMgr(); | 56 CPDF_ModuleMgr(); |
57 ~CPDF_ModuleMgr(); | 57 ~CPDF_ModuleMgr(); |
58 | 58 |
59 static CPDF_ModuleMgr* m_pDefaultMgr; | |
Lei Zhang
2016/07/16 01:23:03
Leave it as a global, for the same reason as CPDFX
Wei Li
2016/07/18 19:07:07
Not sure which style to follow as both g_ and s_ w
Lei Zhang
2016/07/18 19:35:00
Sorry if I was unclear. What I was trying to say i
| |
60 | |
59 CCodec_ModuleMgr* m_pCodecModule; | 61 CCodec_ModuleMgr* m_pCodecModule; |
60 std::unique_ptr<CPDF_PageModule> m_pPageModule; | 62 std::unique_ptr<CPDF_PageModule> m_pPageModule; |
61 std::unique_ptr<CFX_Deletable> m_pUnsupportInfoAdapter; | 63 std::unique_ptr<CFX_Deletable> m_pUnsupportInfoAdapter; |
62 }; | 64 }; |
63 | 65 |
64 #endif // CORE_FPDFAPI_INCLUDE_CPDF_MODULEMGR_H_ | 66 #endif // CORE_FPDFAPI_INCLUDE_CPDF_MODULEMGR_H_ |
OLD | NEW |