aboutsummaryrefslogtreecommitdiff
path: root/core/fxcrt/fileaccess_iface.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/fileaccess_iface.h')
-rw-r--r--core/fxcrt/fileaccess_iface.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/fxcrt/fileaccess_iface.h b/core/fxcrt/fileaccess_iface.h
index c744b5404..29aae635b 100644
--- a/core/fxcrt/fileaccess_iface.h
+++ b/core/fxcrt/fileaccess_iface.h
@@ -1,4 +1,4 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
+// Copyright 2014 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,7 +9,6 @@
#include <memory>
-#include "core/fxcrt/fx_safe_types.h"
#include "core/fxcrt/fx_string.h"
class FileAccessIface {
@@ -17,8 +16,8 @@ class FileAccessIface {
static std::unique_ptr<FileAccessIface> Create();
virtual ~FileAccessIface() = default;
- virtual bool Open(ByteStringView fileName, uint32_t dwMode) = 0;
- virtual bool Open(WideStringView fileName, uint32_t dwMode) = 0;
+ // Opens in read-only mode. `fileName` is UTF-8 on all platforms.
+ virtual bool Open(ByteStringView fileName) = 0;
virtual void Close() = 0;
virtual FX_FILESIZE GetSize() const = 0;
virtual FX_FILESIZE GetPosition() const = 0;