summaryrefslogtreecommitdiff
path: root/xfa/fgas/crt/fgas_stream.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-12-01 14:51:52 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-01 14:51:52 -0800
commitd912f6ba083fed382a13c47aa06299e86d0b8c6b (patch)
treeab99a7b69358e98905cb69ff2167b4d64f25382b /xfa/fgas/crt/fgas_stream.cpp
parentbea049784abf7c32d0b9758fc77d0e601d5c232b (diff)
downloadpdfium-d912f6ba083fed382a13c47aa06299e86d0b8c6b.tar.xz
Make concrete stream classes private to .cpp, part 2
Fix naming to say "Stream" Review-Url: https://codereview.chromium.org/2543043002
Diffstat (limited to 'xfa/fgas/crt/fgas_stream.cpp')
-rw-r--r--xfa/fgas/crt/fgas_stream.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/xfa/fgas/crt/fgas_stream.cpp b/xfa/fgas/crt/fgas_stream.cpp
index 73d3d0b661..485d229282 100644
--- a/xfa/fgas/crt/fgas_stream.cpp
+++ b/xfa/fgas/crt/fgas_stream.cpp
@@ -129,7 +129,7 @@ class CFX_BufferReadStreamImp : public IFX_StreamImp {
CFX_BufferReadStreamImp();
~CFX_BufferReadStreamImp() override;
- bool LoadBufferRead(IFX_BufferRead* pBufferRead,
+ bool LoadBufferRead(IFX_BufferedReadStream* pBufferRead,
int32_t iFileSize,
uint32_t dwAccess,
bool bReleaseBufferRead);
@@ -151,7 +151,7 @@ class CFX_BufferReadStreamImp : public IFX_StreamImp {
bool SetLength(int32_t iLength) override { return false; }
private:
- IFX_BufferRead* m_pBufferRead;
+ IFX_BufferedReadStream* m_pBufferRead;
bool m_bReleaseBufferRead;
int32_t m_iPosition;
int32_t m_iBufferSize;
@@ -200,7 +200,7 @@ class CFX_Stream : public IFX_Stream {
bool LoadBuffer(uint8_t* pData, int32_t iTotalSize, uint32_t dwAccess);
bool LoadFileRead(IFX_SeekableReadStream* pFileRead, uint32_t dwAccess);
bool LoadFileWrite(IFX_SeekableWriteStream* pFileWrite, uint32_t dwAccess);
- bool LoadBufferRead(IFX_BufferRead* pBufferRead,
+ bool LoadBufferRead(IFX_BufferedReadStream* pBufferRead,
int32_t iFileSize,
uint32_t dwAccess,
bool bReleaseBufferRead);
@@ -608,10 +608,11 @@ CFX_BufferReadStreamImp::~CFX_BufferReadStreamImp() {
m_pBufferRead->Release();
}
}
-bool CFX_BufferReadStreamImp::LoadBufferRead(IFX_BufferRead* pBufferRead,
- int32_t iFileSize,
- uint32_t dwAccess,
- bool bReleaseBufferRead) {
+bool CFX_BufferReadStreamImp::LoadBufferRead(
+ IFX_BufferedReadStream* pBufferRead,
+ int32_t iFileSize,
+ uint32_t dwAccess,
+ bool bReleaseBufferRead) {
ASSERT(!m_pBufferRead && pBufferRead);
if (dwAccess & FX_STREAMACCESS_Write) {
return false;
@@ -1195,7 +1196,7 @@ bool CFX_Stream::LoadBuffer(uint8_t* pData,
return true;
}
-bool CFX_Stream::LoadBufferRead(IFX_BufferRead* pBufferRead,
+bool CFX_Stream::LoadBufferRead(IFX_BufferedReadStream* pBufferRead,
int32_t iFileSize,
uint32_t dwAccess,
bool bReleaseBufferRead) {