| 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 "../fxcrt/fx_ext.h" | 10 #include "../fxcrt/fx_ext.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 CCodec_ModuleMgr* GetCodecModule() | 60 CCodec_ModuleMgr* GetCodecModule() |
| 61 { | 61 { |
| 62 return m_pCodecModule; | 62 return m_pCodecModule; |
| 63 } | 63 } |
| 64 | 64 |
| 65 void InitPageModule(); | 65 void InitPageModule(); |
| 66 | 66 |
| 67 void InitRenderModule(); | 67 void InitRenderModule(); |
| 68 | 68 |
| 69 void» » SetDownloadCallback(FX_BOOL (*callback)(FX_LPCSTR module
_name)); | 69 void» » SetDownloadCallback(FX_BOOL (*callback)(const FX_CHAR* m
odule_name)); |
| 70 | 70 |
| 71 FX_BOOL» » DownloadModule(FX_LPCSTR module_name); | 71 FX_BOOL» » DownloadModule(const FX_CHAR* module_name); |
| 72 | 72 |
| 73 void» » NotifyModuleAvailable(FX_LPCSTR module_name); | 73 void» » NotifyModuleAvailable(const FX_CHAR* module_name); |
| 74 | 74 |
| 75 | 75 |
| 76 | 76 |
| 77 CPDF_RenderModuleDef* GetRenderModule() const | 77 CPDF_RenderModuleDef* GetRenderModule() const |
| 78 { | 78 { |
| 79 return m_pRenderModule; | 79 return m_pRenderModule; |
| 80 } | 80 } |
| 81 | 81 |
| 82 CPDF_PageModuleDef* GetPageModule() const | 82 CPDF_PageModuleDef* GetPageModule() const |
| 83 { | 83 { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 95 | 95 |
| 96 void LoadEmbeddedKorea1CMaps(); | 96 void LoadEmbeddedKorea1CMaps(); |
| 97 | 97 |
| 98 ICodec_FaxModule* GetFaxModule(); | 98 ICodec_FaxModule* GetFaxModule(); |
| 99 ICodec_JpegModule* GetJpegModule(); | 99 ICodec_JpegModule* GetJpegModule(); |
| 100 ICodec_JpxModule* GetJpxModule(); | 100 ICodec_JpxModule* GetJpxModule(); |
| 101 ICodec_Jbig2Module* GetJbig2Module(); | 101 ICodec_Jbig2Module* GetJbig2Module(); |
| 102 ICodec_IccModule* GetIccModule(); | 102 ICodec_IccModule* GetIccModule(); |
| 103 ICodec_FlateModule* GetFlateModule(); | 103 ICodec_FlateModule* GetFlateModule(); |
| 104 | 104 |
| 105 void» » » » » RegisterSecurityHandler(FX_LPCST
R name, CPDF_SecurityHandler * (*CreateHandler)(void* param), void* param); | 105 void» » » » » RegisterSecurityHandler(const FX
_CHAR* name, CPDF_SecurityHandler * (*CreateHandler)(void* param), void* param); |
| 106 | 106 |
| 107 CPDF_SecurityHandler*» CreateSecurityHandler(FX_LPCSTR name); | 107 CPDF_SecurityHandler*» CreateSecurityHandler(const FX_CHAR* name); |
| 108 | 108 |
| 109 void» » » » » SetPrivateData(FX_LPVOID module_
id, FX_LPVOID pData, PD_CALLBACK_FREEDATA callback); | 109 void» » » » » SetPrivateData(void* module_id,
void* pData, PD_CALLBACK_FREEDATA callback); |
| 110 | 110 |
| 111 FX_LPVOID» » » » GetPrivateData(FX_LPVOID module_id); | 111 void*» » » » GetPrivateData(void* module_id); |
| 112 | 112 |
| 113 int m_FileBufSize; | 113 int m_FileBufSize; |
| 114 protected: | 114 protected: |
| 115 | 115 |
| 116 CPDF_ModuleMgr(); | 116 CPDF_ModuleMgr(); |
| 117 | 117 |
| 118 ~CPDF_ModuleMgr(); | 118 ~CPDF_ModuleMgr(); |
| 119 void Initialize(); | 119 void Initialize(); |
| 120 | 120 |
| 121 void InitModules(); | 121 void InitModules(); |
| 122 | 122 |
| 123 | 123 |
| 124 | 124 |
| 125 CCodec_ModuleMgr* m_pCodecModule; | 125 CCodec_ModuleMgr* m_pCodecModule; |
| 126 | 126 |
| 127 CPDF_RenderModuleDef* m_pRenderModule; | 127 CPDF_RenderModuleDef* m_pRenderModule; |
| 128 | 128 |
| 129 CPDF_PageModuleDef* m_pPageModule; | 129 CPDF_PageModuleDef* m_pPageModule; |
| 130 | 130 |
| 131 | 131 |
| 132 FX_BOOL (*m_pDownloadCallback)(FX_LPCSTR module_name); | 132 FX_BOOL (*m_pDownloadCallback)(const FX_CHAR* module_name); |
| 133 | 133 |
| 134 CFX_MapByteStringToPtr m_SecurityHandlerMap; | 134 CFX_MapByteStringToPtr m_SecurityHandlerMap; |
| 135 | 135 |
| 136 CFX_PrivateData m_privateData; | 136 CFX_PrivateData m_privateData; |
| 137 }; | 137 }; |
| 138 class CPDF_PageModuleDef | 138 class CPDF_PageModuleDef |
| 139 { | 139 { |
| 140 public: | 140 public: |
| 141 virtual ~CPDF_PageModuleDef() {} | 141 virtual ~CPDF_PageModuleDef() {} |
| 142 | 142 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 189 |
| 190 virtual void NotifyDecoderAvailable() {} | 190 virtual void NotifyDecoderAvailable() {} |
| 191 | 191 |
| 192 virtual CPDF_RenderConfig* GetConfig() | 192 virtual CPDF_RenderConfig* GetConfig() |
| 193 { | 193 { |
| 194 return NULL; | 194 return NULL; |
| 195 } | 195 } |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 #endif // CORE_INCLUDE_FPDFAPI_FPDF_MODULE_H_ | 198 #endif // CORE_INCLUDE_FPDFAPI_FPDF_MODULE_H_ |
| OLD | NEW |