From f85e7e2ea29179dfe4ddc25ab410f8898391999c Mon Sep 17 00:00:00 2001 From: dsinclair Date: Tue, 16 Aug 2016 11:43:23 -0700 Subject: Rename async to linearized when parsing The parser and document refer to async loading and parsing. The code isn't actually async but loading a linearized PDF. This Cl renames the methods to clarify what the code is doing. The LoadDoc() and LoadLinearizedDoc() methods have been refactored to share a common LoadDocInternal() method. Review-Url: https://codereview.chromium.org/2250163002 --- core/fpdfapi/fpdf_parser/include/cpdf_document.h | 5 ++++- core/fpdfapi/fpdf_parser/include/cpdf_parser.h | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'core/fpdfapi/fpdf_parser/include') diff --git a/core/fpdfapi/fpdf_parser/include/cpdf_document.h b/core/fpdfapi/fpdf_parser/include/cpdf_document.h index 3cece1c0a8..4a12ea97dc 100644 --- a/core/fpdfapi/fpdf_parser/include/cpdf_document.h +++ b/core/fpdfapi/fpdf_parser/include/cpdf_document.h @@ -84,7 +84,7 @@ class CPDF_Document : public CPDF_IndirectObjectHolder { CPDF_IccProfile* LoadIccProfile(CPDF_Stream* pStream); void LoadDoc(); - void LoadAsynDoc(CPDF_Dictionary* pLinearized); + void LoadLinearizedDoc(CPDF_Dictionary* pLinearizationParams); void LoadPages(); // Editing methods. @@ -139,6 +139,9 @@ class CPDF_Document : public CPDF_IndirectObjectHolder { std::unique_ptr m_pDocRender; std::unique_ptr m_pCodecContext; std::unique_ptr m_pLinksContext; + + private: + void LoadDocInternal(); }; #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ diff --git a/core/fpdfapi/fpdf_parser/include/cpdf_parser.h b/core/fpdfapi/fpdf_parser/include/cpdf_parser.h index 3ad3b867df..29807b9060 100644 --- a/core/fpdfapi/fpdf_parser/include/cpdf_parser.h +++ b/core/fpdfapi/fpdf_parser/include/cpdf_parser.h @@ -40,8 +40,8 @@ class CPDF_Parser { Error StartParse(IFX_FileRead* pFile, std::unique_ptr pDocument); - Error StartAsyncParse(IFX_FileRead* pFile, - std::unique_ptr pDocument); + Error StartLinearizedParse(IFX_FileRead* pFile, + std::unique_ptr pDocument); void SetPassword(const FX_CHAR* password) { m_Password = password; } CFX_ByteString GetPassword() { return m_Password; } -- cgit v1.2.3