diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-07-19 17:39:15 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-19 17:39:15 +0000 |
commit | 5527682463d1c250e01e868655b58da7625db0c1 (patch) | |
tree | 25c7b2e95c074873552b6f97f8eb023a685648cb /core/fxcrt/fx_stream.h | |
parent | 64316e9a68496b974d75e4434daab9d54db0e591 (diff) | |
download | pdfium-5527682463d1c250e01e868655b58da7625db0c1.tar.xz |
Make FX stream internal details more private to .cpp files.
Makes the generic fx_streams.h header pull in lots less OS-specific
cluter. Combine and de-virtualize the windows struct.
Change-Id: I836b9efb00b25dbd1b8f814645dd31a0f04bb4f4
Reviewed-on: https://pdfium-review.googlesource.com/38330
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_stream.h')
-rw-r--r-- | core/fxcrt/fx_stream.h | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/core/fxcrt/fx_stream.h b/core/fxcrt/fx_stream.h index 8d0a596bd9..b41d413723 100644 --- a/core/fxcrt/fx_stream.h +++ b/core/fxcrt/fx_stream.h @@ -12,20 +12,16 @@ #include "core/fxcrt/retain_ptr.h" #if _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_ -#include <direct.h> -class CFindFileDataA; +struct CFindFileDataA; typedef CFindFileDataA FX_FileHandle; #else // _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_ #include <dirent.h> -#include <fcntl.h> -#include <sys/stat.h> #include <sys/types.h> -#include <unistd.h> - typedef DIR FX_FileHandle; + #endif // _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_ FX_FileHandle* FX_OpenFolder(const char* path); @@ -108,19 +104,4 @@ class IFX_SeekableStream : public IFX_SeekableReadStream, bool Flush() override = 0; }; -#if _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_ -class CFindFileData { - public: - virtual ~CFindFileData() {} - HANDLE m_Handle; - bool m_bEnd; -}; - -class CFindFileDataA : public CFindFileData { - public: - ~CFindFileDataA() override {} - WIN32_FIND_DATAA m_FindData; -}; -#endif - #endif // CORE_FXCRT_FX_STREAM_H_ |