| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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_INCLUDE_FPDFAPI_FPDF_MODULE_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_MODULE_H_ |
| 8 #define CORE_INCLUDE_FPDFAPI_FPDF_MODULE_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_MODULE_H_ |
| 9 | 9 |
| 10 #include "../../../third_party/base/nonstd_unique_ptr.h" | 10 #include "../../../third_party/base/nonstd_unique_ptr.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 CCodec_ModuleMgr* GetCodecModule() | 54 CCodec_ModuleMgr* GetCodecModule() |
| 55 { | 55 { |
| 56 return m_pCodecModule; | 56 return m_pCodecModule; |
| 57 } | 57 } |
| 58 | 58 |
| 59 void InitPageModule(); | 59 void InitPageModule(); |
| 60 | 60 |
| 61 void InitRenderModule(); | 61 void InitRenderModule(); |
| 62 | 62 |
| 63 void SetDownloadCallback(FX_BOOL (*callback)(const FX_CHAR* module_name)); | 63 void SetDownloadCallback(bool (*callback)(const FX_CHAR* module_name)); |
| 64 | 64 |
| 65 FX_BOOL DownloadModule(const FX_CHAR* module_name); | 65 bool DownloadModule(const FX_CHAR* module_name); |
| 66 | 66 |
| 67 void NotifyModuleAvailable(const FX_CHAR* module_name); | 67 void NotifyModuleAvailable(const FX_CHAR* module_name); |
| 68 | 68 |
| 69 IPDF_RenderModule* GetRenderModule() const | 69 IPDF_RenderModule* GetRenderModule() const |
| 70 { | 70 { |
| 71 return m_pRenderModule.get(); | 71 return m_pRenderModule.get(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 IPDF_PageModule* GetPageModule() const | 74 IPDF_PageModule* GetPageModule() const |
| 75 { | 75 { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 103 | 103 |
| 104 private: | 104 private: |
| 105 CPDF_ModuleMgr(); | 105 CPDF_ModuleMgr(); |
| 106 ~CPDF_ModuleMgr(); | 106 ~CPDF_ModuleMgr(); |
| 107 | 107 |
| 108 CCodec_ModuleMgr* m_pCodecModule; | 108 CCodec_ModuleMgr* m_pCodecModule; |
| 109 | 109 |
| 110 nonstd::unique_ptr<IPDF_RenderModule> m_pRenderModule; | 110 nonstd::unique_ptr<IPDF_RenderModule> m_pRenderModule; |
| 111 nonstd::unique_ptr<IPDF_PageModule> m_pPageModule; | 111 nonstd::unique_ptr<IPDF_PageModule> m_pPageModule; |
| 112 | 112 |
| 113 FX_BOOL (*m_pDownloadCallback)(const FX_CHAR* module_name); | 113 bool (*m_pDownloadCallback)(const FX_CHAR* module_name); |
| 114 | 114 |
| 115 CFX_MapByteStringToPtr m_SecurityHandlerMap; | 115 CFX_MapByteStringToPtr m_SecurityHandlerMap; |
| 116 | 116 |
| 117 CFX_PrivateData m_privateData; | 117 CFX_PrivateData m_privateData; |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 class IPDF_PageModule | 120 class IPDF_PageModule |
| 121 { | 121 { |
| 122 public: | 122 public: |
| 123 virtual ~IPDF_PageModule() {} | 123 virtual ~IPDF_PageModule() {} |
| (...skipping 15 matching lines...) Expand all Loading... |
| 139 virtual CPDF_DocRenderData* CreateDocData(CPDF_Document* pDoc) = 0; | 139 virtual CPDF_DocRenderData* CreateDocData(CPDF_Document* pDoc) = 0; |
| 140 virtual void DestroyDocData(CPDF_DocRenderData*) = 0; | 140 virtual void DestroyDocData(CPDF_DocRenderData*) = 0; |
| 141 virtual void ClearDocData(CPDF_DocRenderData*) = 0; | 141 virtual void ClearDocData(CPDF_DocRenderData*) = 0; |
| 142 virtual CPDF_DocRenderData* GetRenderData() = 0; | 142 virtual CPDF_DocRenderData* GetRenderData() = 0; |
| 143 virtual CPDF_PageRenderCache* CreatePageCache(CPDF_Page* pPage) = 0; | 143 virtual CPDF_PageRenderCache* CreatePageCache(CPDF_Page* pPage) = 0; |
| 144 virtual void DestroyPageCache(CPDF_PageRenderCache*) = 0; | 144 virtual void DestroyPageCache(CPDF_PageRenderCache*) = 0; |
| 145 virtual CPDF_RenderConfig* GetConfig() = 0; | 145 virtual CPDF_RenderConfig* GetConfig() = 0; |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 #endif // CORE_INCLUDE_FPDFAPI_FPDF_MODULE_H_ | 148 #endif // CORE_INCLUDE_FPDFAPI_FPDF_MODULE_H_ |
| OLD | NEW |