| 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 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
| 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 CPDF_Dictionary* m_pTrailer; | 423 CPDF_Dictionary* m_pTrailer; |
| 424 CPDF_Dictionary* m_pEncryptDict; | 424 CPDF_Dictionary* m_pEncryptDict; |
| 425 FX_FILESIZE m_LastXRefOffset; | 425 FX_FILESIZE m_LastXRefOffset; |
| 426 FX_BOOL m_bXRefStream; | 426 FX_BOOL m_bXRefStream; |
| 427 std::unique_ptr<IPDF_SecurityHandler> m_pSecurityHandler; | 427 std::unique_ptr<IPDF_SecurityHandler> m_pSecurityHandler; |
| 428 CFX_ByteString m_bsRecipient; | 428 CFX_ByteString m_bsRecipient; |
| 429 CFX_ByteString m_FilePath; | 429 CFX_ByteString m_FilePath; |
| 430 CFX_ByteString m_Password; | 430 CFX_ByteString m_Password; |
| 431 | 431 |
| 432 struct ObjectInfo { | 432 struct ObjectInfo { |
| 433 ObjectInfo() : pos(0), type(0) {} | 433 ObjectInfo() : pos(0), type(0), gennum(0) {} |
| 434 | 434 |
| 435 FX_FILESIZE pos; | 435 FX_FILESIZE pos; |
| 436 uint8_t type; | 436 uint8_t type; |
| 437 // TODO(thestig): Use field below in place of |m_ObjVersion| | |
| 438 #if 0 | |
| 439 uint16_t gennum; | 437 uint16_t gennum; |
| 440 #endif | |
| 441 }; | 438 }; |
| 442 std::map<FX_DWORD, ObjectInfo> m_ObjectInfo; | 439 std::map<FX_DWORD, ObjectInfo> m_ObjectInfo; |
| 443 | 440 |
| 444 CFX_WordArray m_ObjVersion; | |
| 445 CFX_FileSizeArray m_SortedOffset; | 441 CFX_FileSizeArray m_SortedOffset; |
| 446 CFX_ArrayTemplate<CPDF_Dictionary*> m_Trailers; | 442 CFX_ArrayTemplate<CPDF_Dictionary*> m_Trailers; |
| 447 FX_BOOL m_bVersionUpdated; | 443 FX_BOOL m_bVersionUpdated; |
| 448 CPDF_Object* m_pLinearized; | 444 CPDF_Object* m_pLinearized; |
| 449 FX_DWORD m_dwFirstPageNo; | 445 FX_DWORD m_dwFirstPageNo; |
| 450 FX_DWORD m_dwXrefStartObjNum; | 446 FX_DWORD m_dwXrefStartObjNum; |
| 451 | 447 |
| 452 // A map of object numbers to indirect streams. Map owns the streams. | 448 // A map of object numbers to indirect streams. Map owns the streams. |
| 453 std::map<FX_DWORD, std::unique_ptr<CPDF_StreamAcc>> m_ObjectStreamMap; | 449 std::map<FX_DWORD, std::unique_ptr<CPDF_StreamAcc>> m_ObjectStreamMap; |
| 454 | 450 |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 FX_DWORD src_size, | 883 FX_DWORD src_size, |
| 888 const CPDF_Dictionary* pDict, | 884 const CPDF_Dictionary* pDict, |
| 889 uint8_t*& dest_buf, | 885 uint8_t*& dest_buf, |
| 890 FX_DWORD& dest_size, | 886 FX_DWORD& dest_size, |
| 891 CFX_ByteString& ImageEncoding, | 887 CFX_ByteString& ImageEncoding, |
| 892 CPDF_Dictionary*& pImageParms, | 888 CPDF_Dictionary*& pImageParms, |
| 893 FX_DWORD estimated_size, | 889 FX_DWORD estimated_size, |
| 894 FX_BOOL bImageAcc); | 890 FX_BOOL bImageAcc); |
| 895 | 891 |
| 896 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 892 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
| OLD | NEW |