summaryrefslogtreecommitdiff
path: root/core/fpdfapi/include
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-09-29 12:49:17 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-29 12:49:17 -0700
commit39c62fd528854eb4606b8f1917a777532b04db03 (patch)
treebca67a4a0535d79d1bedd0a823546e36febeba9c /core/fpdfapi/include
parent61df2c78c3fb28bb3c3bd9be90e4c0aa03cd55a6 (diff)
downloadpdfium-39c62fd528854eb4606b8f1917a777532b04db03.tar.xz
Move core/fpdfapi/include to core/fpdfapi
BUG=pdfium:611 Review-Url: https://codereview.chromium.org/2376153004
Diffstat (limited to 'core/fpdfapi/include')
-rw-r--r--core/fpdfapi/include/cpdf_modulemgr.h76
-rw-r--r--core/fpdfapi/include/cpdf_pagerendercontext.h31
2 files changed, 0 insertions, 107 deletions
diff --git a/core/fpdfapi/include/cpdf_modulemgr.h b/core/fpdfapi/include/cpdf_modulemgr.h
deleted file mode 100644
index 6e00385480..0000000000
--- a/core/fpdfapi/include/cpdf_modulemgr.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright 2016 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef CORE_FPDFAPI_INCLUDE_CPDF_MODULEMGR_H_
-#define CORE_FPDFAPI_INCLUDE_CPDF_MODULEMGR_H_
-
-#include <memory>
-
-#include "core/fxcrt/include/fx_basic.h"
-
-class CCodec_FaxModule;
-class CCodec_FlateModule;
-class CCodec_IccModule;
-class CCodec_Jbig2Module;
-class CCodec_JpegModule;
-class CCodec_JpxModule;
-class CCodec_ModuleMgr;
-class CPDF_PageModule;
-
-class CFSDK_UnsupportInfo_Adapter {
- public:
- explicit CFSDK_UnsupportInfo_Adapter(void* unsp_info)
- : m_unsp_info(unsp_info) {}
-
- void* GetUnspInfo() const { return m_unsp_info; }
-
- private:
- void* const m_unsp_info;
-};
-
-class CPDF_ModuleMgr {
- public:
- static CPDF_ModuleMgr* Get();
- static void Create();
- static void Destroy();
- static const int kFileBufSize = 512;
-
- void SetCodecModule(CCodec_ModuleMgr* pModule) { m_pCodecModule = pModule; }
- CCodec_ModuleMgr* GetCodecModule() { return m_pCodecModule; }
-
- void InitPageModule();
- CPDF_PageModule* GetPageModule() const { return m_pPageModule.get(); }
-
- void SetUnsupportInfoAdapter(
- std::unique_ptr<CFSDK_UnsupportInfo_Adapter> pAdapter) {
- m_pUnsupportInfoAdapter = std::move(pAdapter);
- }
- CFSDK_UnsupportInfo_Adapter* GetUnsupportInfoAdapter() const {
- return m_pUnsupportInfoAdapter.get();
- }
-
- void LoadEmbeddedGB1CMaps();
- void LoadEmbeddedCNS1CMaps();
- void LoadEmbeddedJapan1CMaps();
- void LoadEmbeddedKorea1CMaps();
-
- CCodec_FaxModule* GetFaxModule();
- CCodec_JpegModule* GetJpegModule();
- CCodec_JpxModule* GetJpxModule();
- CCodec_Jbig2Module* GetJbig2Module();
- CCodec_IccModule* GetIccModule();
- CCodec_FlateModule* GetFlateModule();
-
- private:
- CPDF_ModuleMgr();
- ~CPDF_ModuleMgr();
-
- CCodec_ModuleMgr* m_pCodecModule;
- std::unique_ptr<CPDF_PageModule> m_pPageModule;
- std::unique_ptr<CFSDK_UnsupportInfo_Adapter> m_pUnsupportInfoAdapter;
-};
-
-#endif // CORE_FPDFAPI_INCLUDE_CPDF_MODULEMGR_H_
diff --git a/core/fpdfapi/include/cpdf_pagerendercontext.h b/core/fpdfapi/include/cpdf_pagerendercontext.h
deleted file mode 100644
index 2ee3daeda3..0000000000
--- a/core/fpdfapi/include/cpdf_pagerendercontext.h
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2016 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef CORE_FPDFAPI_INCLUDE_CPDF_PAGERENDERCONTEXT_H_
-#define CORE_FPDFAPI_INCLUDE_CPDF_PAGERENDERCONTEXT_H_
-
-#include <memory>
-
-class CFX_RenderDevice;
-class CPDF_AnnotList;
-class CPDF_ProgressiveRenderer;
-class CPDF_RenderContext;
-class CPDF_RenderOptions;
-
-// Everything about rendering is put here: for OOM recovery
-class CPDF_PageRenderContext {
- public:
- CPDF_PageRenderContext();
- ~CPDF_PageRenderContext();
-
- std::unique_ptr<CFX_RenderDevice> m_pDevice;
- std::unique_ptr<CPDF_RenderContext> m_pContext;
- std::unique_ptr<CPDF_ProgressiveRenderer> m_pRenderer;
- std::unique_ptr<CPDF_AnnotList> m_pAnnots;
- std::unique_ptr<CPDF_RenderOptions> m_pOptions;
-};
-
-#endif // CORE_FPDFAPI_INCLUDE_CPDF_PAGERENDERCONTEXT_H_