Chromium Code Reviews| 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_INCLUDE_FPDFAPI_CPDF_PARSER_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_CPDF_PARSER_H_ |
| 8 #define CORE_INCLUDE_FPDFAPI_CPDF_PARSER_H_ | 8 #define CORE_INCLUDE_FPDFAPI_CPDF_PARSER_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 CPDF_Dictionary* m_pEncryptDict; | 123 CPDF_Dictionary* m_pEncryptDict; |
| 124 FX_FILESIZE m_LastXRefOffset; | 124 FX_FILESIZE m_LastXRefOffset; |
| 125 FX_BOOL m_bXRefStream; | 125 FX_BOOL m_bXRefStream; |
| 126 std::unique_ptr<IPDF_SecurityHandler> m_pSecurityHandler; | 126 std::unique_ptr<IPDF_SecurityHandler> m_pSecurityHandler; |
| 127 CFX_ByteString m_bsRecipient; | 127 CFX_ByteString m_bsRecipient; |
| 128 CFX_ByteString m_FilePath; | 128 CFX_ByteString m_FilePath; |
| 129 CFX_ByteString m_Password; | 129 CFX_ByteString m_Password; |
| 130 std::map<FX_DWORD, ObjectInfo> m_ObjectInfo; | 130 std::map<FX_DWORD, ObjectInfo> m_ObjectInfo; |
| 131 std::set<FX_FILESIZE> m_SortedOffset; | 131 std::set<FX_FILESIZE> m_SortedOffset; |
| 132 CFX_ArrayTemplate<CPDF_Dictionary*> m_Trailers; | 132 CFX_ArrayTemplate<CPDF_Dictionary*> m_Trailers; |
| 133 FX_BOOL m_bVersionUpdated; | 133 bool m_bVersionUpdated; |
|
Tom Sepez
2016/03/11 00:30:28
Poking around for how this is used, I noticed this
Wei Li
2016/03/11 04:11:36
Done.
| |
| 134 CPDF_Object* m_pLinearized; | 134 CPDF_Object* m_pLinearized; |
| 135 FX_DWORD m_dwFirstPageNo; | 135 FX_DWORD m_dwFirstPageNo; |
| 136 FX_DWORD m_dwXrefStartObjNum; | 136 FX_DWORD m_dwXrefStartObjNum; |
| 137 | 137 |
| 138 // A map of object numbers to indirect streams. Map owns the streams. | 138 // A map of object numbers to indirect streams. Map owns the streams. |
| 139 std::map<FX_DWORD, std::unique_ptr<CPDF_StreamAcc>> m_ObjectStreamMap; | 139 std::map<FX_DWORD, std::unique_ptr<CPDF_StreamAcc>> m_ObjectStreamMap; |
| 140 | 140 |
| 141 // Mapping of object numbers to offsets. The offsets are relative to the first | 141 // Mapping of object numbers to offsets. The offsets are relative to the first |
| 142 // object in the stream. | 142 // object in the stream. |
| 143 using StreamObjectCache = std::map<FX_DWORD, FX_DWORD>; | 143 using StreamObjectCache = std::map<FX_DWORD, FX_DWORD>; |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 164 kPostObjNum, | 164 kPostObjNum, |
| 165 kGenNum, | 165 kGenNum, |
| 166 kPostGenNum, | 166 kPostGenNum, |
| 167 kTrailer, | 167 kTrailer, |
| 168 kBeginObj, | 168 kBeginObj, |
| 169 kEndObj | 169 kEndObj |
| 170 }; | 170 }; |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 #endif // CORE_INCLUDE_FPDFAPI_CPDF_PARSER_H_ | 173 #endif // CORE_INCLUDE_FPDFAPI_CPDF_PARSER_H_ |
| OLD | NEW |