| OLD | NEW |
| 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> |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 #include <string> | |
| 14 | |
| 15 #include "base/base_export.h" | 13 #include "base/base_export.h" |
| 16 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 17 #include "base/files/file_path.h" | |
| 18 #include "base/move.h" | 15 #include "base/move.h" |
| 19 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 20 | 17 |
| 21 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
| 22 #include "base/win/scoped_handle.h" | 19 #include "base/win/scoped_handle.h" |
| 23 #endif | 20 #endif |
| 24 | 21 |
| 25 namespace base { | 22 namespace base { |
| 26 | 23 |
| 24 class FilePath; |
| 25 |
| 27 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
| 28 typedef HANDLE PlatformFile; | 27 typedef HANDLE PlatformFile; |
| 29 #elif defined(OS_POSIX) | 28 #elif defined(OS_POSIX) |
| 30 typedef int PlatformFile; | 29 typedef int PlatformFile; |
| 31 #endif | 30 #endif |
| 32 | 31 |
| 33 | 32 |
| 34 // Thin wrapper around an OS-level file. | 33 // Thin wrapper around an OS-level file. |
| 35 // Note that this class does not provide any support for asynchronous IO, other | 34 // Note that this class does not provide any support for asynchronous IO, other |
| 36 // than the ability to create asynchronous handles on Windows. | 35 // than the ability to create asynchronous handles on Windows. |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 #endif | 280 #endif |
| 282 | 281 |
| 283 Error error_details_; | 282 Error error_details_; |
| 284 bool created_; | 283 bool created_; |
| 285 bool async_; | 284 bool async_; |
| 286 }; | 285 }; |
| 287 | 286 |
| 288 } // namespace base | 287 } // namespace base |
| 289 | 288 |
| 290 #endif // BASE_FILES_FILE_H_ | 289 #endif // BASE_FILES_FILE_H_ |
| OLD | NEW |