summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_crtfileaccess.cpp
blob: b6a6a74d1ca936c209b3ce70b04c67a8a0d4686c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 WideStringView& wsPath)
    : m_path(wsPath) {}

CFX_CRTFileAccess::~CFX_CRTFileAccess() {}

RetainPtr<IFX_SeekableStream> CFX_CRTFileAccess::CreateFileStream(
    uint32_t dwModes) {
  return IFX_SeekableStream::CreateFromFilename(m_path.c_str(), dwModes);
}