diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-04-20 13:13:04 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-20 17:49:41 +0000 |
commit | cfb1944e245e20fe2ce0e94feebc06526db34fa1 (patch) | |
tree | 6728e3ebca9e53dc97a18e1f5f37c3d53d9bb404 /core/fxcrt/cfx_crtfileaccess.cpp | |
parent | 6864bf8c4fbcac0833a77d044f17f4100d504f2a (diff) | |
download | pdfium-cfb1944e245e20fe2ce0e94feebc06526db34fa1.tar.xz |
Cleanup the fx_extension code.
This CL cleans up the fx_extension file. The stream code was moved to
fx_stream. IFX_FileAccess was removed and CFX_CRTFileAccess split to its
own file. Code shuffled from header to cpp file.
Change-Id: I700fdfcc9797cf4e8050cd9ba010ad8854feefbf
Reviewed-on: https://pdfium-review.googlesource.com/4371
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_crtfileaccess.cpp')
-rw-r--r-- | core/fxcrt/cfx_crtfileaccess.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/fxcrt/cfx_crtfileaccess.cpp b/core/fxcrt/cfx_crtfileaccess.cpp new file mode 100644 index 0000000000..ddca68e144 --- /dev/null +++ b/core/fxcrt/cfx_crtfileaccess.cpp @@ -0,0 +1,17 @@ +// Copyright 2017 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#include "core/fxcrt/cfx_crtfileaccess.h" + +CFX_CRTFileAccess::CFX_CRTFileAccess(const CFX_WideStringC& wsPath) + : m_path(wsPath) {} + +CFX_CRTFileAccess::~CFX_CRTFileAccess() {} + +CFX_RetainPtr<IFX_SeekableStream> CFX_CRTFileAccess::CreateFileStream( + uint32_t dwModes) { + return IFX_SeekableStream::CreateFromFilename(m_path.c_str(), dwModes); +} |