| 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_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_CPDF_OBJECT_H_ |
| 8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ | 8 #define CORE_FPDFAPI_FPDF_PARSER_CPDF_OBJECT_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <set> | 11 #include <set> |
| 12 | 12 |
| 13 #include "core/fxcrt/include/fx_string.h" | 13 #include "core/fxcrt/include/fx_string.h" |
| 14 #include "core/fxcrt/include/fx_system.h" | 14 #include "core/fxcrt/include/fx_system.h" |
| 15 | 15 |
| 16 class CPDF_Array; | 16 class CPDF_Array; |
| 17 class CPDF_Boolean; | 17 class CPDF_Boolean; |
| 18 class CPDF_Dictionary; | 18 class CPDF_Dictionary; |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 } | 173 } |
| 174 | 174 |
| 175 inline CPDF_Stream* ToStream(CPDF_Object* obj) { | 175 inline CPDF_Stream* ToStream(CPDF_Object* obj) { |
| 176 return obj ? obj->AsStream() : nullptr; | 176 return obj ? obj->AsStream() : nullptr; |
| 177 } | 177 } |
| 178 | 178 |
| 179 inline const CPDF_Stream* ToStream(const CPDF_Object* obj) { | 179 inline const CPDF_Stream* ToStream(const CPDF_Object* obj) { |
| 180 return obj ? obj->AsStream() : nullptr; | 180 return obj ? obj->AsStream() : nullptr; |
| 181 } | 181 } |
| 182 | 182 |
| 183 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ | 183 #endif // CORE_FPDFAPI_FPDF_PARSER_CPDF_OBJECT_H_ |
| OLD | NEW |