summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_stream.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-12-07 15:28:14 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-07 15:28:14 -0800
commita9d29df6a774737a661d0f37f6b8aa5cba179c06 (patch)
tree0bd11a3575f9459163247de93db3fa375a44e98a /core/fxcrt/fx_stream.h
parentcd5e12a9ea397b48056643a7b65126395eec3174 (diff)
downloadpdfium-a9d29df6a774737a661d0f37f6b8aa5cba179c06.tar.xz
Properly ref count IFX_FileAccess.
Review-Url: https://codereview.chromium.org/2562563002
Diffstat (limited to 'core/fxcrt/fx_stream.h')
-rw-r--r--core/fxcrt/fx_stream.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/fxcrt/fx_stream.h b/core/fxcrt/fx_stream.h
index b998761742..2f4b5ad280 100644
--- a/core/fxcrt/fx_stream.h
+++ b/core/fxcrt/fx_stream.h
@@ -143,13 +143,11 @@ class IFX_BufferedReadStream : public IFX_ReadStream {
};
#ifdef PDF_ENABLE_XFA
-class IFX_FileAccess {
+class IFX_FileAccess : public CFX_Retainable {
public:
- static IFX_FileAccess* CreateDefault(const CFX_WideStringC& wsPath);
+ static CFX_RetainPtr<IFX_FileAccess> CreateDefault(
+ const CFX_WideStringC& wsPath);
- virtual ~IFX_FileAccess() {}
- virtual void Release() = 0;
- virtual IFX_FileAccess* Retain() = 0;
virtual void GetPath(CFX_WideString& wsPath) = 0;
virtual CFX_RetainPtr<IFX_SeekableStream> CreateFileStream(
uint32_t dwModes) = 0;