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

Side by Side Diff: xfa/fxfa/parser/xfa_document_serialize.h

Issue 1846993002: Remove IXFA_* interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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 | « xfa/fxfa/parser/xfa_document_layout_imp.cpp ('k') | xfa/fxfa/parser/xfa_document_serialize.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 XFA_FXFA_PARSER_XFA_DOCUMENT_SERIALIZE_H_ 7 #ifndef XFA_FXFA_PARSER_XFA_DOCUMENT_SERIALIZE_H_
8 #define XFA_FXFA_PARSER_XFA_DOCUMENT_SERIALIZE_H_ 8 #define XFA_FXFA_PARSER_XFA_DOCUMENT_SERIALIZE_H_
9 9
10 #include "xfa/fxfa/parser/xfa_docdata.h" 10 #include "xfa/fxfa/parser/xfa_docdata.h"
11 11
12 class CXFA_DataImporter : public IXFA_PacketImport { 12 class CXFA_DataImporter {
13 public: 13 public:
14 CXFA_DataImporter(CXFA_Document* pDocument); 14 explicit CXFA_DataImporter(CXFA_Document* pDocument);
15 virtual void Release() { delete this; } 15
16 virtual FX_BOOL ImportData(IFX_FileRead* pDataDocument); 16 void Release() { delete this; }
17 FX_BOOL ImportData(IFX_FileRead* pDataDocument);
17 18
18 protected: 19 protected:
19 CXFA_Document* m_pDocument; 20 CXFA_Document* const m_pDocument;
20 }; 21 };
21 22
22 class CXFA_DataExporter : public IXFA_PacketExport { 23 class CXFA_DataExporter {
23 public: 24 public:
24 CXFA_DataExporter(CXFA_Document* pDocument); 25 explicit CXFA_DataExporter(CXFA_Document* pDocument);
25 virtual void Release() { delete this; } 26
26 virtual FX_BOOL Export(IFX_FileWrite* pWrite); 27 void Release() { delete this; }
27 virtual FX_BOOL Export(IFX_FileWrite* pWrite, 28 FX_BOOL Export(IFX_FileWrite* pWrite);
28 CXFA_Node* pNode, 29 FX_BOOL Export(IFX_FileWrite* pWrite,
29 uint32_t dwFlag = 0, 30 CXFA_Node* pNode,
30 const FX_CHAR* pChecksum = NULL); 31 uint32_t dwFlag = 0,
32 const FX_CHAR* pChecksum = NULL);
31 33
32 protected: 34 protected:
33 FX_BOOL Export(IFX_Stream* pStream, 35 FX_BOOL Export(IFX_Stream* pStream,
34 CXFA_Node* pNode, 36 CXFA_Node* pNode,
35 uint32_t dwFlag, 37 uint32_t dwFlag,
36 const FX_CHAR* pChecksum); 38 const FX_CHAR* pChecksum);
37 CXFA_Document* m_pDocument; 39 CXFA_Document* const m_pDocument;
38 }; 40 };
39 41
40 #endif // XFA_FXFA_PARSER_XFA_DOCUMENT_SERIALIZE_H_ 42 #endif // XFA_FXFA_PARSER_XFA_DOCUMENT_SERIALIZE_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_document_layout_imp.cpp ('k') | xfa/fxfa/parser/xfa_document_serialize.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698