diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-05-11 14:36:10 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-11 19:10:43 +0000 |
commit | 830897a1774fb50d04b656d7bf70be321e133cf9 (patch) | |
tree | bd5473e87f1246c8bdc9c224342637160d70da55 /core/fpdfapi/cpdf_modulemgr.h | |
parent | dbc3d3e1e0b28692c31f08f6b4c606577255078d (diff) | |
download | pdfium-830897a1774fb50d04b656d7bf70be321e133cf9.tar.xz |
Move map and codec loading into manager
This Cl consolidates the code to load maps and codecs into the
CPDF_ModuleMgr class instead of putting it directly into fpdfview.
Change-Id: Ia08f212f43a33e51ab1c7832051ee4f28eecb50d
Reviewed-on: https://pdfium-review.googlesource.com/5335
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/cpdf_modulemgr.h')
-rw-r--r-- | core/fpdfapi/cpdf_modulemgr.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/fpdfapi/cpdf_modulemgr.h b/core/fpdfapi/cpdf_modulemgr.h index d31ffd5256..898b6ea0bc 100644 --- a/core/fpdfapi/cpdf_modulemgr.h +++ b/core/fpdfapi/cpdf_modulemgr.h @@ -52,10 +52,8 @@ class CPDF_ModuleMgr { return m_pUnsupportInfoAdapter.get(); } - void LoadEmbeddedGB1CMaps(); - void LoadEmbeddedCNS1CMaps(); - void LoadEmbeddedJapan1CMaps(); - void LoadEmbeddedKorea1CMaps(); + void LoadEmbeddedMaps(); + void LoadCodecModules(); CCodec_FaxModule* GetFaxModule(); CCodec_JpegModule* GetJpegModule(); @@ -68,6 +66,11 @@ class CPDF_ModuleMgr { CPDF_ModuleMgr(); ~CPDF_ModuleMgr(); + void LoadEmbeddedGB1CMaps(); + void LoadEmbeddedCNS1CMaps(); + void LoadEmbeddedJapan1CMaps(); + void LoadEmbeddedKorea1CMaps(); + CCodec_ModuleMgr* m_pCodecModule; std::unique_ptr<CPDF_PageModule> m_pPageModule; std::unique_ptr<CFSDK_UnsupportInfo_Adapter> m_pUnsupportInfoAdapter; |