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 #include "../../include/fxcodec/fx_codec.h" | 7 #include "core/include/fxcodec/fx_codec.h" |
8 #include "../../include/fpdfapi/fpdf_module.h" | 8 #include "core/include/fpdfapi/fpdf_module.h" |
9 | 9 |
10 namespace { | 10 namespace { |
11 | 11 |
12 CPDF_ModuleMgr* g_FPDFAPI_pDefaultMgr = nullptr; | 12 CPDF_ModuleMgr* g_FPDFAPI_pDefaultMgr = nullptr; |
13 | 13 |
14 } // namespace | 14 } // namespace |
15 | 15 |
16 // static | 16 // static |
17 CPDF_ModuleMgr* CPDF_ModuleMgr::Get() { | 17 CPDF_ModuleMgr* CPDF_ModuleMgr::Get() { |
18 return g_FPDFAPI_pDefaultMgr; | 18 return g_FPDFAPI_pDefaultMgr; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 53 } |
54 ICodec_Jbig2Module* CPDF_ModuleMgr::GetJbig2Module() { | 54 ICodec_Jbig2Module* CPDF_ModuleMgr::GetJbig2Module() { |
55 return m_pCodecModule ? m_pCodecModule->GetJbig2Module() : NULL; | 55 return m_pCodecModule ? m_pCodecModule->GetJbig2Module() : NULL; |
56 } | 56 } |
57 ICodec_IccModule* CPDF_ModuleMgr::GetIccModule() { | 57 ICodec_IccModule* CPDF_ModuleMgr::GetIccModule() { |
58 return m_pCodecModule ? m_pCodecModule->GetIccModule() : NULL; | 58 return m_pCodecModule ? m_pCodecModule->GetIccModule() : NULL; |
59 } | 59 } |
60 ICodec_FlateModule* CPDF_ModuleMgr::GetFlateModule() { | 60 ICodec_FlateModule* CPDF_ModuleMgr::GetFlateModule() { |
61 return m_pCodecModule ? m_pCodecModule->GetFlateModule() : NULL; | 61 return m_pCodecModule ? m_pCodecModule->GetFlateModule() : NULL; |
62 } | 62 } |
OLD | NEW |