Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: base/files/file.h

Issue 1424943006: Support Windows FILE_FLAG_SEQUENTIAL_SCAN in base::File. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/files/file_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_FILES_FILE_H_ 5 #ifndef BASE_FILES_FILE_H_
6 #define BASE_FILES_FILE_H_ 6 #define BASE_FILES_FILE_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 FLAG_EXCLUSIVE_WRITE = 1 << 9, 78 FLAG_EXCLUSIVE_WRITE = 1 << 9,
79 FLAG_ASYNC = 1 << 10, 79 FLAG_ASYNC = 1 << 10,
80 FLAG_TEMPORARY = 1 << 11, // Used on Windows only. 80 FLAG_TEMPORARY = 1 << 11, // Used on Windows only.
81 FLAG_HIDDEN = 1 << 12, // Used on Windows only. 81 FLAG_HIDDEN = 1 << 12, // Used on Windows only.
82 FLAG_DELETE_ON_CLOSE = 1 << 13, 82 FLAG_DELETE_ON_CLOSE = 1 << 13,
83 FLAG_WRITE_ATTRIBUTES = 1 << 14, // Used on Windows only. 83 FLAG_WRITE_ATTRIBUTES = 1 << 14, // Used on Windows only.
84 FLAG_SHARE_DELETE = 1 << 15, // Used on Windows only. 84 FLAG_SHARE_DELETE = 1 << 15, // Used on Windows only.
85 FLAG_TERMINAL_DEVICE = 1 << 16, // Serial port flags. 85 FLAG_TERMINAL_DEVICE = 1 << 16, // Serial port flags.
86 FLAG_BACKUP_SEMANTICS = 1 << 17, // Used on Windows only. 86 FLAG_BACKUP_SEMANTICS = 1 << 17, // Used on Windows only.
87 FLAG_EXECUTE = 1 << 18, // Used on Windows only. 87 FLAG_EXECUTE = 1 << 18, // Used on Windows only.
88 FLAG_SEQUENTIAL_SCAN = 1 << 19, // Used on Windows only.
88 }; 89 };
89 90
90 // This enum has been recorded in multiple histograms. If the order of the 91 // This enum has been recorded in multiple histograms. If the order of the
91 // fields needs to change, please ensure that those histograms are obsolete or 92 // fields needs to change, please ensure that those histograms are obsolete or
92 // have been moved to a different enum. 93 // have been moved to a different enum.
93 // 94 //
94 // FILE_ERROR_ACCESS_DENIED is returned when a call fails because of a 95 // FILE_ERROR_ACCESS_DENIED is returned when a call fails because of a
95 // filesystem restriction. FILE_ERROR_SECURITY is returned when a browser 96 // filesystem restriction. FILE_ERROR_SECURITY is returned when a browser
96 // policy doesn't allow the operation to be executed. 97 // policy doesn't allow the operation to be executed.
97 enum Error { 98 enum Error {
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 334
334 Error error_details_; 335 Error error_details_;
335 bool created_; 336 bool created_;
336 bool async_; 337 bool async_;
337 }; 338 };
338 339
339 } // namespace base 340 } // namespace base
340 341
341 #endif // BASE_FILES_FILE_H_ 342 #endif // BASE_FILES_FILE_H_
342 343
OLDNEW
« no previous file with comments | « no previous file | base/files/file_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698