Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: fpdfsdk/fsdk_define.h

Issue 2451493002: Refcount all the IFX_ stream classes all the time. (Closed)
Patch Set: Clean up cast expression Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 FPDFSDK_FSDK_DEFINE_H_ 7 #ifndef FPDFSDK_FSDK_DEFINE_H_
8 #define FPDFSDK_FSDK_DEFINE_H_ 8 #define FPDFSDK_FSDK_DEFINE_H_
9 9
10 #include "core/fpdfapi/parser/cpdf_parser.h" 10 #include "core/fpdfapi/parser/cpdf_parser.h"
11 #include "core/fxge/fx_dib.h" 11 #include "core/fxge/fx_dib.h"
12 #include "public/fpdfview.h" 12 #include "public/fpdfview.h"
13 13
14 #ifdef PDF_ENABLE_XFA 14 #ifdef PDF_ENABLE_XFA
15 #include "fpdfsdk/fpdfxfa/cpdfxfa_context.h" 15 #include "fpdfsdk/fpdfxfa/cpdfxfa_context.h"
16 #endif // PDF_ENABLE_XFA 16 #endif // PDF_ENABLE_XFA
17 17
18 #ifdef _WIN32 18 #ifdef _WIN32
19 #include <math.h> 19 #include <math.h>
20 #include <tchar.h> 20 #include <tchar.h>
21 #endif 21 #endif
22 22
23 class CPDF_Annot; 23 class CPDF_Annot;
24 class CPDF_Page; 24 class CPDF_Page;
25 class CPDF_PageRenderContext; 25 class CPDF_PageRenderContext;
26 class IFSDK_PAUSE_Adapter; 26 class IFSDK_PAUSE_Adapter;
27 27
28 // Layering prevents fxcrt from knowing about FPDF_FILEACCESS, so this can't 28 // Layering prevents fxcrt from knowing about FPDF_FILEACCESS, so this can't
29 // be a static method of IFX_SeekableReadStream. 29 // be a static method of IFX_SeekableReadStream.
30 IFX_SeekableReadStream* MakeSeekableReadStream(FPDF_FILEACCESS* pFileAccess); 30 CFX_RetainPtr<IFX_SeekableReadStream> MakeSeekableReadStream(
31 FPDF_FILEACCESS* pFileAccess);
31 32
32 #ifdef PDF_ENABLE_XFA 33 #ifdef PDF_ENABLE_XFA
33 // Layering prevents fxcrt from knowing about FPDF_FILEHANDLER, so this can't 34 // Layering prevents fxcrt from knowing about FPDF_FILEHANDLER, so this can't
34 // be a static method of IFX_SeekableStream. 35 // be a static method of IFX_SeekableStream.
35 IFX_SeekableStream* MakeSeekableStream(FPDF_FILEHANDLER* pFileHandler); 36 CFX_RetainPtr<IFX_SeekableStream> MakeSeekableStream(
37 FPDF_FILEHANDLER* pFileHandler);
36 #endif // PDF_ENABLE_XFA 38 #endif // PDF_ENABLE_XFA
37 39
38 // Object types for public FPDF_ types; these correspond to next layer down 40 // Object types for public FPDF_ types; these correspond to next layer down
39 // from fpdfsdk. For master, these are CPDF_ types, but for XFA, these are 41 // from fpdfsdk. For master, these are CPDF_ types, but for XFA, these are
40 // CPDFXFA_ types. 42 // CPDFXFA_ types.
41 #ifndef PDF_ENABLE_XFA 43 #ifndef PDF_ENABLE_XFA
42 using UnderlyingDocumentType = CPDF_Document; 44 using UnderlyingDocumentType = CPDF_Document;
43 using UnderlyingPageType = CPDF_Page; 45 using UnderlyingPageType = CPDF_Page;
44 #else // PDF_ENABLE_XFA 46 #else // PDF_ENABLE_XFA
45 using UnderlyingDocumentType = CPDFXFA_Context; 47 using UnderlyingDocumentType = CPDFXFA_Context;
(...skipping 25 matching lines...) Expand all
71 int rotate, 73 int rotate,
72 int flags, 74 int flags,
73 bool bNeedToRestore, 75 bool bNeedToRestore,
74 IFSDK_PAUSE_Adapter* pause); 76 IFSDK_PAUSE_Adapter* pause);
75 77
76 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); 78 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code);
77 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); 79 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot);
78 void ProcessParseError(CPDF_Parser::Error err); 80 void ProcessParseError(CPDF_Parser::Error err);
79 81
80 #endif // FPDFSDK_FSDK_DEFINE_H_ 82 #endif // FPDFSDK_FSDK_DEFINE_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp ('k') | testing/libfuzzer/pdf_cfx_saxreader_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698