diff options
Diffstat (limited to 'core/fpdfapi/parser')
-rw-r--r-- | core/fpdfapi/parser/cfdf_document.h | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_array.h | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_boolean.h | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_data_avail.h | 3 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_dictionary.h | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_name.h | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_object_avail_unittest.cpp | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_page_object_avail.h | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_page_object_avail_unittest.cpp | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_reference.h | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_stream.h | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_stream_acc.h | 3 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_string.h | 2 |
13 files changed, 13 insertions, 15 deletions
diff --git a/core/fpdfapi/parser/cfdf_document.h b/core/fpdfapi/parser/cfdf_document.h index 6ab751e4dd..7298f4e1c5 100644 --- a/core/fpdfapi/parser/cfdf_document.h +++ b/core/fpdfapi/parser/cfdf_document.h @@ -29,7 +29,7 @@ class CFDF_Document final : public CPDF_IndirectObjectHolder { ByteString WriteToString() const; CPDF_Dictionary* GetRoot() const { return m_pRootDict.Get(); } - protected: + private: void ParseStream(const RetainPtr<IFX_SeekableReadStream>& pFile); UnownedPtr<CPDF_Dictionary> m_pRootDict; diff --git a/core/fpdfapi/parser/cpdf_array.h b/core/fpdfapi/parser/cpdf_array.h index 0c9251ca23..c4686c08e1 100644 --- a/core/fpdfapi/parser/cpdf_array.h +++ b/core/fpdfapi/parser/cpdf_array.h @@ -112,7 +112,7 @@ class CPDF_Array final : public CPDF_Object { const_iterator begin() const { return m_Objects.begin(); } const_iterator end() const { return m_Objects.end(); } - protected: + private: std::unique_ptr<CPDF_Object> CloneNonCyclic( bool bDirect, std::set<const CPDF_Object*>* pVisited) const override; diff --git a/core/fpdfapi/parser/cpdf_boolean.h b/core/fpdfapi/parser/cpdf_boolean.h index 406381b1b9..5aa63afd4c 100644 --- a/core/fpdfapi/parser/cpdf_boolean.h +++ b/core/fpdfapi/parser/cpdf_boolean.h @@ -31,7 +31,7 @@ class CPDF_Boolean final : public CPDF_Object { bool WriteTo(IFX_ArchiveStream* archive, const CPDF_Encryptor* encryptor) const override; - protected: + private: bool m_bValue; }; diff --git a/core/fpdfapi/parser/cpdf_data_avail.h b/core/fpdfapi/parser/cpdf_data_avail.h index 100e2ae296..4dff3ce0c9 100644 --- a/core/fpdfapi/parser/cpdf_data_avail.h +++ b/core/fpdfapi/parser/cpdf_data_avail.h @@ -112,7 +112,7 @@ class CPDF_DataAvail final : public CPDF_Document::Observer { const CPDF_HintTables* GetHintTables() const { return m_pHintTables.get(); } - protected: + private: class PageNode { public: PageNode(); @@ -184,7 +184,6 @@ class CPDF_DataAvail final : public CPDF_Document::Observer { bool m_bPagesLoad = false; std::unique_ptr<CPDF_PageObjectAvail> m_pFormAvail; std::vector<std::unique_ptr<CPDF_Object>> m_PagesArray; - uint32_t m_dwEncryptObjNum = 0; bool m_bTotalLoadPageTree = false; bool m_bCurPageDictLoadOK = false; PageNode m_PageNode; diff --git a/core/fpdfapi/parser/cpdf_dictionary.h b/core/fpdfapi/parser/cpdf_dictionary.h index 4930e5e2e3..1876a610a2 100644 --- a/core/fpdfapi/parser/cpdf_dictionary.h +++ b/core/fpdfapi/parser/cpdf_dictionary.h @@ -106,7 +106,7 @@ class CPDF_Dictionary final : public CPDF_Object { WeakPtr<ByteStringPool> GetByteStringPool() const { return m_pPool; } - protected: + private: ByteString MaybeIntern(const ByteString& str); std::unique_ptr<CPDF_Object> CloneNonCyclic( bool bDirect, diff --git a/core/fpdfapi/parser/cpdf_name.h b/core/fpdfapi/parser/cpdf_name.h index 1ef6c64c59..ee5a6ce9c8 100644 --- a/core/fpdfapi/parser/cpdf_name.h +++ b/core/fpdfapi/parser/cpdf_name.h @@ -30,7 +30,7 @@ class CPDF_Name final : public CPDF_Object { bool WriteTo(IFX_ArchiveStream* archive, const CPDF_Encryptor* encryptor) const override; - protected: + private: ByteString m_Name; }; diff --git a/core/fpdfapi/parser/cpdf_object_avail_unittest.cpp b/core/fpdfapi/parser/cpdf_object_avail_unittest.cpp index e2b23d44f4..7dc1dcc050 100644 --- a/core/fpdfapi/parser/cpdf_object_avail_unittest.cpp +++ b/core/fpdfapi/parser/cpdf_object_avail_unittest.cpp @@ -27,7 +27,7 @@ class TestReadValidator final : public CPDF_ReadValidator { void SimulateReadError() { ReadBlock(nullptr, 0, 1); } - protected: + private: TestReadValidator() : CPDF_ReadValidator( pdfium::MakeRetain<CFX_InvalidSeekableReadStream>(100), diff --git a/core/fpdfapi/parser/cpdf_page_object_avail.h b/core/fpdfapi/parser/cpdf_page_object_avail.h index b62ca4c33a..bb9e80a669 100644 --- a/core/fpdfapi/parser/cpdf_page_object_avail.h +++ b/core/fpdfapi/parser/cpdf_page_object_avail.h @@ -14,7 +14,7 @@ class CPDF_PageObjectAvail final : public CPDF_ObjectAvail { using CPDF_ObjectAvail::CPDF_ObjectAvail; ~CPDF_PageObjectAvail() override; - protected: + private: bool ExcludeObject(const CPDF_Object* object) const override; }; diff --git a/core/fpdfapi/parser/cpdf_page_object_avail_unittest.cpp b/core/fpdfapi/parser/cpdf_page_object_avail_unittest.cpp index f278b6e57c..57ab09c219 100644 --- a/core/fpdfapi/parser/cpdf_page_object_avail_unittest.cpp +++ b/core/fpdfapi/parser/cpdf_page_object_avail_unittest.cpp @@ -28,7 +28,7 @@ class TestReadValidator final : public CPDF_ReadValidator { void SimulateReadError() { ReadBlock(nullptr, 0, 1); } - protected: + private: TestReadValidator() : CPDF_ReadValidator( pdfium::MakeRetain<CFX_InvalidSeekableReadStream>(100), diff --git a/core/fpdfapi/parser/cpdf_reference.h b/core/fpdfapi/parser/cpdf_reference.h index cb9c6ed1d4..f7b03ac721 100644 --- a/core/fpdfapi/parser/cpdf_reference.h +++ b/core/fpdfapi/parser/cpdf_reference.h @@ -42,7 +42,7 @@ class CPDF_Reference final : public CPDF_Object { uint32_t GetRefObjNum() const { return m_RefObjNum; } void SetRef(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum); - protected: + private: std::unique_ptr<CPDF_Object> CloneNonCyclic( bool bDirect, std::set<const CPDF_Object*>* pVisited) const override; diff --git a/core/fpdfapi/parser/cpdf_stream.h b/core/fpdfapi/parser/cpdf_stream.h index 9d8cf6d896..aada80e35c 100644 --- a/core/fpdfapi/parser/cpdf_stream.h +++ b/core/fpdfapi/parser/cpdf_stream.h @@ -62,7 +62,7 @@ class CPDF_Stream final : public CPDF_Object { bool IsMemoryBased() const { return m_bMemoryBased; } bool HasFilter() const; - protected: + private: std::unique_ptr<CPDF_Object> CloneNonCyclic( bool bDirect, std::set<const CPDF_Object*>* pVisited) const override; diff --git a/core/fpdfapi/parser/cpdf_stream_acc.h b/core/fpdfapi/parser/cpdf_stream_acc.h index 3c42639828..ddbdc6ae0f 100644 --- a/core/fpdfapi/parser/cpdf_stream_acc.h +++ b/core/fpdfapi/parser/cpdf_stream_acc.h @@ -41,13 +41,12 @@ class CPDF_StreamAcc final : public Retainable { const CPDF_Dictionary* GetImageParam() const { return m_pImageParam.Get(); } std::unique_ptr<uint8_t, FxFreeDeleter> DetachData(); - protected: + private: explicit CPDF_StreamAcc(const CPDF_Stream* pStream); ~CPDF_StreamAcc() override; void LoadAllData(bool bRawAccess, uint32_t estimated_size, bool bImageAcc); - private: uint8_t* m_pData = nullptr; uint32_t m_dwSize = 0; bool m_bNewBuf = false; diff --git a/core/fpdfapi/parser/cpdf_string.h b/core/fpdfapi/parser/cpdf_string.h index 75cc3c4fe1..d3fc2c5911 100644 --- a/core/fpdfapi/parser/cpdf_string.h +++ b/core/fpdfapi/parser/cpdf_string.h @@ -36,7 +36,7 @@ class CPDF_String final : public CPDF_Object { bool IsHex() const { return m_bHex; } - protected: + private: ByteString m_String; bool m_bHex; }; |