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

Side by Side Diff: core/include/fpdfapi/fpdf_parser.h

Issue 1278533002: Merge to XFA: CPDF_Parser shouldnt be in the business of opening files (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 4 months 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
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 "../fxcrt/fx_system.h" 10 #include "../fxcrt/fx_system.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 #define PDFPARSE_ERROR_FORMAT 2 348 #define PDFPARSE_ERROR_FORMAT 2
349 #define PDFPARSE_ERROR_PASSWORD 3 349 #define PDFPARSE_ERROR_PASSWORD 3
350 #define PDFPARSE_ERROR_HANDLER 4 350 #define PDFPARSE_ERROR_HANDLER 4
351 #define PDFPARSE_ERROR_CERT 5 351 #define PDFPARSE_ERROR_CERT 5
352 352
353 class CPDF_Parser { 353 class CPDF_Parser {
354 public: 354 public:
355 CPDF_Parser(); 355 CPDF_Parser();
356 ~CPDF_Parser(); 356 ~CPDF_Parser();
357 357
358 FX_DWORD StartParse(const FX_CHAR* filename, FX_BOOL bReParse = FALSE);
359 FX_DWORD StartParse(const FX_WCHAR* filename, FX_BOOL bReParse = FALSE);
360 FX_DWORD StartParse(IFX_FileRead* pFile, 358 FX_DWORD StartParse(IFX_FileRead* pFile,
361 FX_BOOL bReParse = FALSE, 359 FX_BOOL bReParse = FALSE,
362 FX_BOOL bOwnFileRead = TRUE); 360 FX_BOOL bOwnFileRead = TRUE);
363 361
364 void CloseParser(FX_BOOL bReParse = FALSE); 362 void CloseParser(FX_BOOL bReParse = FALSE);
365 363
366 FX_DWORD GetPermissions(FX_BOOL bCheckRevision = FALSE); 364 FX_DWORD GetPermissions(FX_BOOL bCheckRevision = FALSE);
367 365
368 FX_BOOL IsOwner(); 366 FX_BOOL IsOwner();
369 367
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 PDF_DATAAVAIL_PAGE, 901 PDF_DATAAVAIL_PAGE,
904 PDF_DATAAVAIL_PAGE_LATERLOAD, 902 PDF_DATAAVAIL_PAGE_LATERLOAD,
905 PDF_DATAAVAIL_RESOURCES, 903 PDF_DATAAVAIL_RESOURCES,
906 PDF_DATAAVAIL_DONE, 904 PDF_DATAAVAIL_DONE,
907 PDF_DATAAVAIL_ERROR, 905 PDF_DATAAVAIL_ERROR,
908 PDF_DATAAVAIL_LOADALLFILE, 906 PDF_DATAAVAIL_LOADALLFILE,
909 PDF_DATAAVAIL_TRAILER_APPEND 907 PDF_DATAAVAIL_TRAILER_APPEND
910 }; 908 };
911 909
912 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 910 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698