summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/files/file.h1
-rw-r--r--base/files/file_win.cc2
2 files changed, 3 insertions, 0 deletions
diff --git a/base/files/file.h b/base/files/file.h
index 8b3934d..66b78fa 100644
--- a/base/files/file.h
+++ b/base/files/file.h
@@ -85,6 +85,7 @@ class BASE_EXPORT File {
FLAG_TERMINAL_DEVICE = 1 << 16, // Serial port flags.
FLAG_BACKUP_SEMANTICS = 1 << 17, // Used on Windows only.
FLAG_EXECUTE = 1 << 18, // Used on Windows only.
+ FLAG_SEQUENTIAL_SCAN = 1 << 19, // Used on Windows only.
};
// This enum has been recorded in multiple histograms. If the order of the
diff --git a/base/files/file_win.cc b/base/files/file_win.cc
index ce38d0b..2d75ca2 100644
--- a/base/files/file_win.cc
+++ b/base/files/file_win.cc
@@ -375,6 +375,8 @@ void File::DoInitialize(const FilePath& path, uint32 flags) {
create_flags |= FILE_FLAG_DELETE_ON_CLOSE;
if (flags & FLAG_BACKUP_SEMANTICS)
create_flags |= FILE_FLAG_BACKUP_SEMANTICS;
+ if (flags & FLAG_SEQUENTIAL_SCAN)
+ create_flags |= FILE_FLAG_SEQUENTIAL_SCAN;
file_.Set(CreateFile(path.value().c_str(), access, sharing, NULL,
disposition, create_flags, NULL));