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

Unified Diff: core/fpdfapi/fpdf_parser/cpdf_hint_tables.h

Issue 2392603004: Move core/fpdfapi/fpdf_parser to core/fpdfapi/parser (Closed)
Patch Set: Rebase to master Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_document.cpp ('k') | core/fpdfapi/fpdf_parser/cpdf_hint_tables.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_parser/cpdf_hint_tables.h
diff --git a/core/fpdfapi/fpdf_parser/cpdf_hint_tables.h b/core/fpdfapi/fpdf_parser/cpdf_hint_tables.h
deleted file mode 100644
index 797cb24f506d9a41bd7211fef54b8accc538bc89..0000000000000000000000000000000000000000
--- a/core/fpdfapi/fpdf_parser/cpdf_hint_tables.h
+++ /dev/null
@@ -1,71 +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_FPDF_PARSER_CPDF_HINT_TABLES_H_
-#define CORE_FPDFAPI_FPDF_PARSER_CPDF_HINT_TABLES_H_
-
-#include <vector>
-
-#include "core/fpdfapi/fpdf_parser/cpdf_data_avail.h"
-#include "core/fxcrt/fx_basic.h"
-#include "core/fxcrt/fx_stream.h"
-
-class CFX_BitStream;
-class CPDF_Dictionary;
-class CPDF_Stream;
-
-class CPDF_HintTables {
- public:
- CPDF_HintTables(CPDF_DataAvail* pDataAvail, CPDF_Dictionary* pLinearized);
- virtual ~CPDF_HintTables();
-
- bool GetPagePos(uint32_t index,
- FX_FILESIZE* szPageStartPos,
- FX_FILESIZE* szPageLength,
- uint32_t* dwObjNum);
-
- CPDF_DataAvail::DocAvailStatus CheckPage(
- uint32_t index,
- CPDF_DataAvail::DownloadHints* pHints);
-
- bool LoadHintStream(CPDF_Stream* pHintStream);
-
- protected:
- bool ReadPageHintTable(CFX_BitStream* hStream);
- bool ReadSharedObjHintTable(CFX_BitStream* hStream, uint32_t offset);
-
- private:
- // Tests can override.
- virtual int GetEndOfFirstPageOffset() const;
- virtual int GetNumberOfPages() const;
- virtual int GetFirstPageObjectNumber() const;
- virtual int GetFirstPageNumber() const;
- virtual int ReadPrimaryHintStreamOffset() const;
- virtual int ReadPrimaryHintStreamLength() const;
-
- // Helper for the ReadPrimaryHintStream methods above.
- int ReadPrimaryHintStream(int index) const;
-
- uint32_t GetItemLength(uint32_t index,
- const std::vector<FX_FILESIZE>& szArray);
-
- // Owner, outlives this object.
- CPDF_DataAvail* const m_pDataAvail;
-
- // Owned by |m_pDataAvail|.
- CPDF_Dictionary* const m_pLinearizedDict;
-
- uint32_t m_nFirstPageSharedObjs;
- FX_FILESIZE m_szFirstPageObjOffset;
- std::vector<uint32_t> m_dwDeltaNObjsArray;
- std::vector<uint32_t> m_dwNSharedObjsArray;
- std::vector<uint32_t> m_dwSharedObjNumArray;
- std::vector<uint32_t> m_dwIdentifierArray;
- std::vector<FX_FILESIZE> m_szPageOffsetArray;
- std::vector<FX_FILESIZE> m_szSharedObjOffsetArray;
-};
-
-#endif // CORE_FPDFAPI_FPDF_PARSER_CPDF_HINT_TABLES_H_
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_document.cpp ('k') | core/fpdfapi/fpdf_parser/cpdf_hint_tables.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698