| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FPDFAPI_FPDF_PARSER_CPDF_DATA_AVAIL_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_CPDF_DATA_AVAIL_H_ |
| 8 #define CORE_FPDFAPI_FPDF_PARSER_CPDF_DATA_AVAIL_H_ | 8 #define CORE_FPDFAPI_FPDF_PARSER_CPDF_DATA_AVAIL_H_ |
| 9 | 9 |
| 10 #include "core/fpdfapi/fpdf_parser/cpdf_hint_tables.h" | 10 #include "core/fpdfapi/fpdf_parser/cpdf_hint_tables.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 PDF_PAGENODE_ARRAY, | 49 PDF_PAGENODE_ARRAY, |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 class CPDF_DataAvail final : public IPDF_DataAvail { | 52 class CPDF_DataAvail final : public IPDF_DataAvail { |
| 53 public: | 53 public: |
| 54 CPDF_DataAvail(FileAvail* pFileAvail, | 54 CPDF_DataAvail(FileAvail* pFileAvail, |
| 55 IFX_FileRead* pFileRead, | 55 IFX_FileRead* pFileRead, |
| 56 FX_BOOL bSupportHintTable); | 56 FX_BOOL bSupportHintTable); |
| 57 ~CPDF_DataAvail() override; | 57 ~CPDF_DataAvail() override; |
| 58 | 58 |
| 59 // IPDF_DataAvail: | 59 // IPDF_DataAvail |
| 60 DocAvailStatus IsDocAvail(DownloadHints* pHints) override; | 60 DocAvailStatus IsDocAvail(DownloadHints* pHints) override; |
| 61 void SetDocument(CPDF_Document* pDoc) override; | 61 void SetDocument(CPDF_Document* pDoc) override; |
| 62 DocAvailStatus IsPageAvail(int iPage, DownloadHints* pHints) override; | 62 DocAvailStatus IsPageAvail(int iPage, DownloadHints* pHints) override; |
| 63 DocFormStatus IsFormAvail(DownloadHints* pHints) override; | 63 DocFormStatus IsFormAvail(DownloadHints* pHints) override; |
| 64 DocLinearizationStatus IsLinearizedPDF() override; | 64 DocLinearizationStatus IsLinearizedPDF() override; |
| 65 FX_BOOL IsLinearized() override { return m_bLinearized; } | 65 FX_BOOL IsLinearized() override; |
| 66 void GetLinearizedMainXRefInfo(FX_FILESIZE* pPos, uint32_t* pSize) override; | 66 void GetLinearizedMainXRefInfo(FX_FILESIZE* pPos, uint32_t* pSize) override; |
| 67 | 67 |
| 68 int GetPageCount() const; | 68 int GetPageCount() const; |
| 69 CPDF_Dictionary* GetPage(int index); | 69 CPDF_Dictionary* GetPage(int index); |
| 70 | 70 |
| 71 friend class CPDF_HintTables; | 71 friend class CPDF_HintTables; |
| 72 | 72 |
| 73 protected: | 73 protected: |
| 74 class PageNode { | 74 class PageNode { |
| 75 public: | 75 public: |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 FX_BOOL m_bTotalLoadPageTree; | 208 FX_BOOL m_bTotalLoadPageTree; |
| 209 FX_BOOL m_bCurPageDictLoadOK; | 209 FX_BOOL m_bCurPageDictLoadOK; |
| 210 PageNode m_pageNodes; | 210 PageNode m_pageNodes; |
| 211 std::set<uint32_t> m_pageMapCheckState; | 211 std::set<uint32_t> m_pageMapCheckState; |
| 212 std::set<uint32_t> m_pagesLoadState; | 212 std::set<uint32_t> m_pagesLoadState; |
| 213 std::unique_ptr<CPDF_HintTables> m_pHintTables; | 213 std::unique_ptr<CPDF_HintTables> m_pHintTables; |
| 214 FX_BOOL m_bSupportHintTable; | 214 FX_BOOL m_bSupportHintTable; |
| 215 }; | 215 }; |
| 216 | 216 |
| 217 #endif // CORE_FPDFAPI_FPDF_PARSER_CPDF_DATA_AVAIL_H_ | 217 #endif // CORE_FPDFAPI_FPDF_PARSER_CPDF_DATA_AVAIL_H_ |
| OLD | NEW |