diff options
author | tsepez <tsepez@chromium.org> | 2016-12-01 13:54:42 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-12-01 13:54:42 -0800 |
commit | bea049784abf7c32d0b9758fc77d0e601d5c232b (patch) | |
tree | 8cb30eec48538191531ead20100d4e696fa6ebef /fpdfsdk/fsdk_define.h | |
parent | aeeb6d19d1fc794de482826ecaf8ec2fd9e92d0e (diff) | |
download | pdfium-bea049784abf7c32d0b9758fc77d0e601d5c232b.tar.xz |
Make more concrete stream classes private to .cpp files
Review-Url: https://codereview.chromium.org/2545653003
Diffstat (limited to 'fpdfsdk/fsdk_define.h')
-rw-r--r-- | fpdfsdk/fsdk_define.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/fpdfsdk/fsdk_define.h b/fpdfsdk/fsdk_define.h index 3a75c84500..d878e54963 100644 --- a/fpdfsdk/fsdk_define.h +++ b/fpdfsdk/fsdk_define.h @@ -25,19 +25,9 @@ class CPDF_Page; class CPDF_PageRenderContext; class IFSDK_PAUSE_Adapter; -class CPDF_CustomAccess final : public IFX_SeekableReadStream { - public: - explicit CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess); - ~CPDF_CustomAccess() override {} - - // IFX_SeekableReadStream - FX_FILESIZE GetSize() override; - void Release() override; - bool ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) override; - - private: - FPDF_FILEACCESS m_FileAccess; -}; +// Layering prevents fxcrt from knowing about FPDF_FILEACCESS, so this can't +// be a static method of IFX_SeekableReadStream. +IFX_SeekableReadStream* MakeSeekableReadStream(FPDF_FILEACCESS* pFileAccess); #ifdef PDF_ENABLE_XFA class CFPDF_FileStream : public IFX_SeekableStream { |