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

Side by Side Diff: base/platform_file.h

Issue 93513002: Base: Move platform_file.* to files/file.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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 | Annotate | Revision Log
« base/files/file.h ('K') | « base/files/file_win.cc ('k') | no next file » | 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_PLATFORM_FILE_H_ 5 #ifndef BASE_PLATFORM_FILE_H_
6 #define BASE_PLATFORM_FILE_H_ 6 #define BASE_PLATFORM_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>
11 #endif 11 #endif
12 12
13 #include <string> 13 #include <string>
14 14
15 #include "base/base_export.h" 15 #include "base/base_export.h"
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 19
20 namespace base { 20 namespace base {
21 21
22 // ***************************************************************************
23 // ***** Don't use anything from this file anymore. It is being removed!
24 // ***** Use base/files/base_file.h instead
25 // ***************************************************************************
26
22 // PLATFORM_FILE_(OPEN|CREATE).* are mutually exclusive. You should specify 27 // PLATFORM_FILE_(OPEN|CREATE).* are mutually exclusive. You should specify
23 // exactly one of the five (possibly combining with other flags) when opening 28 // exactly one of the five (possibly combining with other flags) when opening
24 // or creating a file. 29 // or creating a file.
25 // PLATFORM_FILE_(WRITE|APPEND) are mutually exclusive. This is so that APPEND 30 // PLATFORM_FILE_(WRITE|APPEND) are mutually exclusive. This is so that APPEND
26 // behavior will be consistent with O_APPEND on POSIX. 31 // behavior will be consistent with O_APPEND on POSIX.
27 // PLATFORM_FILE_EXCLUSIVE_(READ|WRITE) only grant exclusive access to the file 32 // PLATFORM_FILE_EXCLUSIVE_(READ|WRITE) only grant exclusive access to the file
28 // on creation on POSIX; for existing files, consider using LockPlatformFile(). 33 // on creation on POSIX; for existing files, consider using LockPlatformFile().
29 enum PlatformFileFlags { 34 enum PlatformFileFlags {
30 PLATFORM_FILE_OPEN = 1 << 0, // Opens a file, only if it exists. 35 PLATFORM_FILE_OPEN = 1 << 0, // Opens a file, only if it exists.
31 PLATFORM_FILE_CREATE = 1 << 1, // Creates a new file, only if it 36 PLATFORM_FILE_CREATE = 1 << 1, // Creates a new file, only if it
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 return temp; 280 return temp;
276 } 281 }
277 282
278 private: 283 private:
279 PlatformFile* value_; 284 PlatformFile* value_;
280 }; 285 };
281 286
282 } // namespace base 287 } // namespace base
283 288
284 #endif // BASE_PLATFORM_FILE_H_ 289 #endif // BASE_PLATFORM_FILE_H_
OLDNEW
« base/files/file.h ('K') | « base/files/file_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698