Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(896)

Side by Side Diff: core/include/fpdfapi/fpdf_module.h

Issue 801913002: Simplify PDFium by removing code that's not used in the open source repo. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 _FPDF_MODULE_ 7 #ifndef _FPDF_MODULE_
8 #define _FPDF_MODULE_ 8 #define _FPDF_MODULE_
9 #ifndef _FXCRT_EXTENSION_ 9 #ifndef _FXCRT_EXTENSION_
10 #include "../fxcrt/fx_ext.h" 10 #include "../fxcrt/fx_ext.h"
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 CCodec_ModuleMgr* GetCodecModule() 42 CCodec_ModuleMgr* GetCodecModule()
43 { 43 {
44 return m_pCodecModule; 44 return m_pCodecModule;
45 } 45 }
46 46
47 void InitPageModule(); 47 void InitPageModule();
48 48
49 void InitRenderModule(); 49 void InitRenderModule();
50 50
51
52 void SetModulePath(FX_LPCSTR module_name, FX_LPCSTR path);
53
54 CFX_ByteString GetModuleFilePath(FX_LPCSTR module_name, FX_LPCSTR name);
55
56 void SetDownloadCallback(FX_BOOL (*callback)(FX_LPCSTR module _name)); 51 void SetDownloadCallback(FX_BOOL (*callback)(FX_LPCSTR module _name));
57 52
58 FX_BOOL DownloadModule(FX_LPCSTR module_name); 53 FX_BOOL DownloadModule(FX_LPCSTR module_name);
59 54
60 void NotifyModuleAvailable(FX_LPCSTR module_name); 55 void NotifyModuleAvailable(FX_LPCSTR module_name);
61 56
62 57
63 58
64 CPDF_RenderModuleDef* GetRenderModule() const 59 CPDF_RenderModuleDef* GetRenderModule() const
65 { 60 {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 106
112 CCodec_ModuleMgr* m_pCodecModule; 107 CCodec_ModuleMgr* m_pCodecModule;
113 108
114 CPDF_RenderModuleDef* m_pRenderModule; 109 CPDF_RenderModuleDef* m_pRenderModule;
115 110
116 CPDF_PageModuleDef* m_pPageModule; 111 CPDF_PageModuleDef* m_pPageModule;
117 112
118 113
119 FX_BOOL (*m_pDownloadCallback)(FX_LPCSTR module_name); 114 FX_BOOL (*m_pDownloadCallback)(FX_LPCSTR module_name);
120 115
121 CFX_ByteString m_DefaultModulePath;
122
123 CFX_CMapByteStringToPtr m_ModulePathList;
124
125 CFX_MapByteStringToPtr m_SecurityHandlerMap; 116 CFX_MapByteStringToPtr m_SecurityHandlerMap;
126 117
127 CFX_PrivateData m_privateData; 118 CFX_PrivateData m_privateData;
128 }; 119 };
129 class CPDF_Document; 120 class CPDF_Document;
130 class CPDF_DocPageData; 121 class CPDF_DocPageData;
131 class CPDF_FontGlobals; 122 class CPDF_FontGlobals;
132 class IPDF_FontMgr; 123 class IPDF_FontMgr;
133 class IPDF_FontMapper; 124 class IPDF_FontMapper;
134 class CPDF_ColorSpace; 125 class CPDF_ColorSpace;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 virtual void DestroyPageCache(CPDF_PageRenderCache*) {} 187 virtual void DestroyPageCache(CPDF_PageRenderCache*) {}
197 188
198 virtual void NotifyDecoderAvailable() {} 189 virtual void NotifyDecoderAvailable() {}
199 190
200 virtual CPDF_RenderConfig* GetConfig() 191 virtual CPDF_RenderConfig* GetConfig()
201 { 192 {
202 return NULL; 193 return NULL;
203 } 194 }
204 }; 195 };
205 #endif 196 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698