summaryrefslogtreecommitdiff
path: root/xfa/fgas/crt/ifgas_stream.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-04-12 13:29:37 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-12 17:52:56 +0000
commit51114964fdb2a98f763318ce9affca906ed079e3 (patch)
tree0b5499f30ab34cd1f4f37b5368a766e57eca678a /xfa/fgas/crt/ifgas_stream.h
parent661fcc0156b78fd40937c0844034605f430b94c6 (diff)
downloadpdfium-51114964fdb2a98f763318ce9affca906ed079e3.tar.xz
Fold CXFA_WideTextRead into IFGAS_Stream
This Cl moves CXFA_WideTextRead to be in the anonymous namespace of IFGAS_Stream and adds a IFGAS_Stream::CreateWideStringReadStream() method. This is done so we have all the implementations of IFGAS_Stream centralized. Change-Id: I9fbbf0a493fc2dd05fcd544e344268214a75d8a1 Reviewed-on: https://pdfium-review.googlesource.com/4052 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fgas/crt/ifgas_stream.h')
-rw-r--r--xfa/fgas/crt/ifgas_stream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xfa/fgas/crt/ifgas_stream.h b/xfa/fgas/crt/ifgas_stream.h
index d8efc41afd..df9d93afa3 100644
--- a/xfa/fgas/crt/ifgas_stream.h
+++ b/xfa/fgas/crt/ifgas_stream.h
@@ -27,6 +27,8 @@ class IFGAS_Stream : public CFX_Retainable {
const CFX_RetainPtr<IFX_SeekableReadStream>& pFileRead);
static CFX_RetainPtr<IFGAS_Stream> CreateWriteStream(
const CFX_RetainPtr<IFX_SeekableWriteStream>& pFileWrite);
+ static CFX_RetainPtr<IFGAS_Stream> CreateWideStringReadStream(
+ const CFX_WideString& buffer);
virtual uint32_t GetAccessModes() const = 0;
virtual int32_t GetLength() const = 0;