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

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

Issue 454983003: Add FX_OVERRIDE and use it for virtual functions of FX_FINAL classes. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: mark m_FileAccess private. Created 6 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/include/fxcrt/fx_system.h » ('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 _FPDF_PARSER_ 7 #ifndef _FPDF_PARSER_
8 #define _FPDF_PARSER_ 8 #define _FPDF_PARSER_
9 #ifndef _FX_BASIC_H_ 9 #ifndef _FX_BASIC_H_
10 #include "../fxcrt/fx_ext.h" 10 #include "../fxcrt/fx_ext.h"
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 ~CPDF_Parser(); 406 ~CPDF_Parser();
407 407
408 FX_DWORD StartParse(FX_LPCSTR filename, FX_BOOL bReParse = FALSE); 408 FX_DWORD StartParse(FX_LPCSTR filename, FX_BOOL bReParse = FALSE);
409 409
410 FX_DWORD StartParse(FX_LPCWSTR filename, FX_BOOL bReParse = FALSE); 410 FX_DWORD StartParse(FX_LPCWSTR filename, FX_BOOL bReParse = FALSE);
411 411
412 FX_DWORD StartParse(IFX_FileRead* pFile, FX_BOOL bReParse = FALSE, FX_BOOL bOwnFileRead = TRUE); 412 FX_DWORD StartParse(IFX_FileRead* pFile, FX_BOOL bReParse = FALSE, FX_BOOL bOwnFileRead = TRUE);
413 413
414 void CloseParser(FX_BOOL bReParse = FALSE); 414 void CloseParser(FX_BOOL bReParse = FALSE);
415 415
416 virtual FX_DWORD» GetPermissions(FX_BOOL bCheckRevision = FALSE); 416 virtual FX_DWORD» GetPermissions(FX_BOOL bCheckRevision = FALSE) FX_OVERRI DE;
417 417
418 virtual FX_BOOL» » IsOwner(); 418 virtual FX_BOOL» » IsOwner() FX_OVERRIDE;
419 419
420 void SetPassword(const FX_CHAR* password) 420 void SetPassword(const FX_CHAR* password)
421 { 421 {
422 m_Password = password; 422 m_Password = password;
423 } 423 }
424 424
425 CFX_ByteString GetPassword() 425 CFX_ByteString GetPassword()
426 { 426 {
427 return m_Password; 427 return m_Password;
428 } 428 }
(...skipping 27 matching lines...) Expand all
456 456
457 CPDF_Document* GetDocument() 457 CPDF_Document* GetDocument()
458 { 458 {
459 return m_pDocument; 459 return m_pDocument;
460 } 460 }
461 CFX_ArrayTemplate<CPDF_Dictionary *> * GetOtherTrailers() 461 CFX_ArrayTemplate<CPDF_Dictionary *> * GetOtherTrailers()
462 { 462 {
463 return &m_Trailers; 463 return &m_Trailers;
464 } 464 }
465 465
466 virtual FX_DWORD» GetRootObjNum(); 466 virtual FX_DWORD» GetRootObjNum() FX_OVERRIDE;
467 virtual FX_DWORD» GetInfoObjNum(); 467 virtual FX_DWORD» GetInfoObjNum() FX_OVERRIDE;
468 virtual CPDF_Array*»GetIDArray(); 468 virtual CPDF_Array*»GetIDArray() FX_OVERRIDE;
469 virtual CPDF_Dictionary*» GetEncryptDict() 469 virtual CPDF_Dictionary*» GetEncryptDict() FX_OVERRIDE
470 { 470 {
471 return m_pEncryptDict; 471 return m_pEncryptDict;
472 } 472 }
473 virtual CPDF_Object*» » ParseIndirectObject(CPDF_IndirectObjects * pObjList, FX_DWORD objnum, PARSE_CONTEXT* pContext = NULL); 473 virtual CPDF_Object*» » ParseIndirectObject(CPDF_IndirectObjects * pObjList, FX_DWORD objnum, PARSE_CONTEXT* pContext = NULL) FX_OVERRIDE;
474 virtual FX_DWORD» GetLastObjNum(); 474 virtual FX_DWORD» GetLastObjNum() FX_OVERRIDE;
475 virtual FX_BOOL» » IsFormStream(FX_DWORD objnum, FX_BOOL& bForm); 475 virtual FX_BOOL» » IsFormStream(FX_DWORD objnum, FX_BOOL& bForm) F X_OVERRIDE;
476 476
477 FX_FILESIZE GetObjectOffset(FX_DWORD objnum); 477 FX_FILESIZE GetObjectOffset(FX_DWORD objnum);
478 478
479 FX_FILESIZE GetObjectSize(FX_DWORD objnum); 479 FX_FILESIZE GetObjectSize(FX_DWORD objnum);
480 480
481 int GetObjectVersion(FX_DWORD objnum) 481 int GetObjectVersion(FX_DWORD objnum)
482 { 482 {
483 return m_ObjVersion[objnum]; 483 return m_ObjVersion[objnum];
484 } 484 }
485 485
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 PDF_DATAAVAIL_LOADALLFILE, 945 PDF_DATAAVAIL_LOADALLFILE,
946 PDF_DATAAVAIL_TRAILER_APPEND 946 PDF_DATAAVAIL_TRAILER_APPEND
947 }; 947 };
948 class CPDF_DataAvail FX_FINAL : public CFX_Object, public IPDF_DataAvail 948 class CPDF_DataAvail FX_FINAL : public CFX_Object, public IPDF_DataAvail
949 { 949 {
950 public: 950 public:
951 951
952 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead); 952 CPDF_DataAvail(IFX_FileAvail* pFileAvail, IFX_FileRead* pFileRead);
953 ~CPDF_DataAvail(); 953 ~CPDF_DataAvail();
954 954
955 virtual FX_BOOL» » » » IsDocAvail(IFX_DownloadHints* pH ints); 955 virtual FX_BOOL» » » » IsDocAvail(IFX_DownloadHints* pH ints) FX_OVERRIDE;
956 956
957 957
958 virtual void» » » » SetDocument(CPDF_Document* pDoc) ; 958 virtual void» » » » SetDocument(CPDF_Document* pDoc) FX_OVERRIDE;
959 959
960 960
961 virtual FX_BOOL» » » » IsPageAvail(int iPage, IFX_Downl oadHints* pHints); 961 virtual FX_BOOL» » » » IsPageAvail(int iPage, IFX_Downl oadHints* pHints) FX_OVERRIDE;
962 962
963 virtual FX_INT32» » » IsFormAvail(IFX_DownloadHints *pHints); 963 virtual FX_INT32» » » IsFormAvail(IFX_DownloadHints *pHints) FX_OVERRIDE;
964 964
965 virtual FX_INT32» » » IsLinearizedPDF(); 965 virtual FX_INT32» » » IsLinearizedPDF() FX_OVERRIDE;
966 966
967 virtual FX_BOOL» » » » IsLinearized() 967 virtual FX_BOOL» » » » IsLinearized() FX_OVERRIDE
968 { 968 {
969 return m_bLinearized; 969 return m_bLinearized;
970 } 970 }
971 971
972 virtual void» » » » GetLinearizedMainXRefInfo(FX_FIL ESIZE *pPos, FX_DWORD *pSize); 972 virtual void» » » » GetLinearizedMainXRefInfo(FX_FIL ESIZE *pPos, FX_DWORD *pSize) FX_OVERRIDE;
973 IFX_FileRead* GetFileRead() const 973 IFX_FileRead* GetFileRead() const
974 { 974 {
975 return m_pFileRead; 975 return m_pFileRead;
976 } 976 }
977 IFX_FileAvail* GetFileAvail() const 977 IFX_FileAvail* GetFileAvail() const
978 { 978 {
979 return m_pFileAvail; 979 return m_pFileAvail;
980 } 980 }
981 protected: 981 protected:
982 FX_DWORD GetObjectSize(FX_DWORD objnum, F X_FILESIZE& offset); 982 FX_DWORD GetObjectSize(FX_DWORD objnum, F X_FILESIZE& offset);
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 1140
1141 FX_BOOL m_bCurPageDictLoadOK; 1141 FX_BOOL m_bCurPageDictLoadOK;
1142 1142
1143 CPDF_PageNode m_pageNodes; 1143 CPDF_PageNode m_pageNodes;
1144 1144
1145 CFX_CMapDWordToDWord * m_pageMapCheckState; 1145 CFX_CMapDWordToDWord * m_pageMapCheckState;
1146 1146
1147 CFX_CMapDWordToDWord * m_pagesLoadState; 1147 CFX_CMapDWordToDWord * m_pagesLoadState;
1148 }; 1148 };
1149 #endif 1149 #endif
OLDNEW
« no previous file with comments | « no previous file | core/include/fxcrt/fx_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698