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

Side by Side Diff: xfa/fxfa/parser/cxfa_dataexporter.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
« no previous file with comments | « xfa/fxfa/fxfa.h ('k') | xfa/fxfa/parser/cxfa_dataexporter.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 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 XFA_FXFA_PARSER_CXFA_DATAEXPORTER_H_ 7 #ifndef XFA_FXFA_PARSER_CXFA_DATAEXPORTER_H_
8 #define XFA_FXFA_PARSER_CXFA_DATAEXPORTER_H_ 8 #define XFA_FXFA_PARSER_CXFA_DATAEXPORTER_H_
9 9
10 #include "core/fxcrt/cfx_retain_ptr.h"
10 #include "core/fxcrt/fx_string.h" 11 #include "core/fxcrt/fx_string.h"
11 12
12 class CXFA_Document; 13 class CXFA_Document;
13 class CXFA_Node; 14 class CXFA_Node;
14 class IFX_SeekableWriteStream; 15 class IFX_SeekableWriteStream;
15 class IFGAS_Stream; 16 class IFGAS_Stream;
16 17
17 class CXFA_DataExporter { 18 class CXFA_DataExporter {
18 public: 19 public:
19 explicit CXFA_DataExporter(CXFA_Document* pDocument); 20 explicit CXFA_DataExporter(CXFA_Document* pDocument);
20 21
21 bool Export(IFX_SeekableWriteStream* pWrite); 22 bool Export(const CFX_RetainPtr<IFX_SeekableWriteStream>& pWrite);
22 bool Export(IFX_SeekableWriteStream* pWrite, 23 bool Export(const CFX_RetainPtr<IFX_SeekableWriteStream>& pWrite,
23 CXFA_Node* pNode, 24 CXFA_Node* pNode,
24 uint32_t dwFlag, 25 uint32_t dwFlag,
25 const FX_CHAR* pChecksum); 26 const FX_CHAR* pChecksum);
26 27
27 protected: 28 protected:
28 bool Export(IFGAS_Stream* pStream, 29 bool Export(IFGAS_Stream* pStream,
29 CXFA_Node* pNode, 30 CXFA_Node* pNode,
30 uint32_t dwFlag, 31 uint32_t dwFlag,
31 const FX_CHAR* pChecksum); 32 const FX_CHAR* pChecksum);
32 33
33 CXFA_Document* const m_pDocument; 34 CXFA_Document* const m_pDocument;
34 }; 35 };
35 36
36 #endif // XFA_FXFA_PARSER_CXFA_DATAEXPORTER_H_ 37 #endif // XFA_FXFA_PARSER_CXFA_DATAEXPORTER_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/fxfa.h ('k') | xfa/fxfa/parser/cxfa_dataexporter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698