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

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

Issue 2162503003: Cleanup fgas/crt. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Win fixes Created 4 years, 5 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/cxfa_xml_parser.cpp ('k') | xfa/fxfa/parser/xfa_basic_imp.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_BASIC_IMP_H_ 7 #ifndef XFA_FXFA_PARSER_XFA_BASIC_IMP_H_
8 #define XFA_FXFA_PARSER_XFA_BASIC_IMP_H_ 8 #define XFA_FXFA_PARSER_XFA_BASIC_IMP_H_
9 9
10 #include "xfa/fgas/crt/fgas_stream.h" 10 #include "xfa/fgas/crt/fgas_stream.h"
(...skipping 18 matching lines...) Expand all
29 void Release() override; 29 void Release() override;
30 IFX_Stream* Retain() override; 30 IFX_Stream* Retain() override;
31 uint32_t GetAccessModes() const override; 31 uint32_t GetAccessModes() const override;
32 int32_t GetLength() const override; 32 int32_t GetLength() const override;
33 int32_t Seek(FX_STREAMSEEK eSeek, int32_t iOffset) override; 33 int32_t Seek(FX_STREAMSEEK eSeek, int32_t iOffset) override;
34 int32_t GetPosition() override; 34 int32_t GetPosition() override;
35 FX_BOOL IsEOF() const override; 35 FX_BOOL IsEOF() const override;
36 int32_t ReadData(uint8_t* pBuffer, int32_t iBufferSize) override; 36 int32_t ReadData(uint8_t* pBuffer, int32_t iBufferSize) override;
37 int32_t ReadString(FX_WCHAR* pStr, 37 int32_t ReadString(FX_WCHAR* pStr,
38 int32_t iMaxLength, 38 int32_t iMaxLength,
39 FX_BOOL& bEOS, 39 FX_BOOL& bEOS) override;
40 int32_t const* pByteSize = nullptr) override;
41 int32_t WriteData(const uint8_t* pBuffer, int32_t iBufferSize) override; 40 int32_t WriteData(const uint8_t* pBuffer, int32_t iBufferSize) override;
42 int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) override; 41 int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) override;
43 void Flush() override {} 42 void Flush() override {}
44 FX_BOOL SetLength(int32_t iLength) override; 43 FX_BOOL SetLength(int32_t iLength) override;
45 int32_t GetBOM(uint8_t bom[4]) const override; 44 int32_t GetBOM(uint8_t bom[4]) const override;
46 uint16_t GetCodePage() const override; 45 uint16_t GetCodePage() const override;
47 uint16_t SetCodePage(uint16_t wCodePage) override; 46 uint16_t SetCodePage(uint16_t wCodePage) override;
48 IFX_Stream* CreateSharedStream(uint32_t dwAccess, 47 IFX_Stream* CreateSharedStream(uint32_t dwAccess,
49 int32_t iOffset, 48 int32_t iOffset,
50 int32_t iLength) override; 49 int32_t iLength) override;
51 50
52 virtual void Lock(); 51 virtual void Lock();
53 virtual void Unlock(); 52 virtual void Unlock();
54 53
55 CFX_WideString GetSrcText() const; 54 CFX_WideString GetSrcText() const;
56 55
57 protected: 56 protected:
58 CFX_WideString m_wsBuffer; 57 CFX_WideString m_wsBuffer;
59 int32_t m_iPosition; 58 int32_t m_iPosition;
60 int32_t m_iRefCount; 59 int32_t m_iRefCount;
61 }; 60 };
62 61
63 #endif // XFA_FXFA_PARSER_XFA_BASIC_IMP_H_ 62 #endif // XFA_FXFA_PARSER_XFA_BASIC_IMP_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cxfa_xml_parser.cpp ('k') | xfa/fxfa/parser/xfa_basic_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698