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