summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_seekablestreamproxy.h
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2018-04-17 18:23:49 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-17 18:23:49 +0000
commitbddc60d0977068fbe89a1dad403f2e6ddd7ff1a1 (patch)
tree1769780973bd083f4598baed4d54a200737805fa /core/fxcrt/cfx_seekablestreamproxy.h
parentffdae5fceb4e0b37bc649d99d12c15ccd6ae1b9e (diff)
downloadpdfium-bddc60d0977068fbe89a1dad403f2e6ddd7ff1a1.tar.xz
Remove write abilities from CFX_SeekableStreamProxy
This CL removes the abliity to write to the seekable stream proxy class. Change-Id: I0eda2619714df190d326c23dfdcd4527d4312779 Reviewed-on: https://pdfium-review.googlesource.com/30853 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_seekablestreamproxy.h')
-rw-r--r--core/fxcrt/cfx_seekablestreamproxy.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/fxcrt/cfx_seekablestreamproxy.h b/core/fxcrt/cfx_seekablestreamproxy.h
index c25ab3c9b6..451f7769c2 100644
--- a/core/fxcrt/cfx_seekablestreamproxy.h
+++ b/core/fxcrt/cfx_seekablestreamproxy.h
@@ -31,20 +31,16 @@ class CFX_SeekableStreamProxy : public Retainable {
void Seek(From eSeek, FX_FILESIZE iOffset);
size_t ReadString(wchar_t* pStr, size_t iMaxLength, bool* bEOS);
- void WriteString(const WideStringView& str);
-
uint16_t GetCodePage() const { return m_wCodePage; }
void SetCodePage(uint16_t wCodePage);
private:
- CFX_SeekableStreamProxy(const RetainPtr<IFX_SeekableStream>& stream,
- bool isWriteSteam);
+ explicit CFX_SeekableStreamProxy(const RetainPtr<IFX_SeekableStream>& stream);
CFX_SeekableStreamProxy(uint8_t* data, size_t size);
~CFX_SeekableStreamProxy() override;
size_t ReadData(uint8_t* pBuffer, size_t iBufferSize);
- bool m_IsWriteStream;
uint16_t m_wCodePage;
size_t m_wBOMLength;
FX_FILESIZE m_iPosition;