| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 bool is_symbolic_link; | 85 bool is_symbolic_link; |
| 86 | 86 |
| 87 // The last modified time of a file. | 87 // The last modified time of a file. |
| 88 base::Time last_modified; | 88 base::Time last_modified; |
| 89 | 89 |
| 90 // The last accessed time of a file. | 90 // The last accessed time of a file. |
| 91 base::Time last_accessed; | 91 base::Time last_accessed; |
| 92 | 92 |
| 93 // The creation time of a file. | 93 // The creation time of a file. |
| 94 base::Time creation_time; | 94 base::Time creation_time; |
| 95 | |
| 96 // The full path of a file. Currently only used by FileSystemFileUtil during | |
| 97 // a GetMetadata operation. | |
| 98 FilePath path; | |
| 99 }; | 95 }; |
| 100 | 96 |
| 101 // Creates or opens the given file. If PLATFORM_FILE_OPEN_ALWAYS is used, and | 97 // Creates or opens the given file. If PLATFORM_FILE_OPEN_ALWAYS is used, and |
| 102 // |created| is provided, |created| will be set to true if the file was created | 98 // |created| is provided, |created| will be set to true if the file was created |
| 103 // or to false in case the file was just opened. |error_code| can be NULL. | 99 // or to false in case the file was just opened. |error_code| can be NULL. |
| 104 BASE_API PlatformFile CreatePlatformFile(const FilePath& name, | 100 BASE_API PlatformFile CreatePlatformFile(const FilePath& name, |
| 105 int flags, | 101 int flags, |
| 106 bool* created, | 102 bool* created, |
| 107 PlatformFileError* error_code); | 103 PlatformFileError* error_code); |
| 108 | 104 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 return temp; | 165 return temp; |
| 170 } | 166 } |
| 171 | 167 |
| 172 private: | 168 private: |
| 173 PlatformFile* value_; | 169 PlatformFile* value_; |
| 174 }; | 170 }; |
| 175 | 171 |
| 176 } // namespace base | 172 } // namespace base |
| 177 | 173 |
| 178 #endif // BASE_PLATFORM_FILE_H_ | 174 #endif // BASE_PLATFORM_FILE_H_ |
| OLD | NEW |