| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // make sure to update all functions that use it in file_util_{win|posix}.cc | 70 // make sure to update all functions that use it in file_util_{win|posix}.cc |
| 71 // too, and the ParamTraits<base::PlatformFileInfo> implementation in | 71 // too, and the ParamTraits<base::PlatformFileInfo> implementation in |
| 72 // chrome/common/common_param_traits.cc. | 72 // chrome/common/common_param_traits.cc. |
| 73 struct PlatformFileInfo { | 73 struct PlatformFileInfo { |
| 74 // The size of the file in bytes. Undefined when is_directory is true. | 74 // The size of the file in bytes. Undefined when is_directory is true. |
| 75 int64 size; | 75 int64 size; |
| 76 | 76 |
| 77 // True if the file corresponds to a directory. | 77 // True if the file corresponds to a directory. |
| 78 bool is_directory; | 78 bool is_directory; |
| 79 | 79 |
| 80 // True if the file corresponds to a symbolic link. |
| 81 bool is_symbolic_link; |
| 82 |
| 80 // The last modified time of a file. | 83 // The last modified time of a file. |
| 81 base::Time last_modified; | 84 base::Time last_modified; |
| 82 | 85 |
| 83 // The last accessed time of a file. | 86 // The last accessed time of a file. |
| 84 base::Time last_accessed; | 87 base::Time last_accessed; |
| 85 | 88 |
| 86 // The creation time of a file. | 89 // The creation time of a file. |
| 87 base::Time creation_time; | 90 base::Time creation_time; |
| 88 }; | 91 }; |
| 89 | 92 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 return temp; | 164 return temp; |
| 162 } | 165 } |
| 163 | 166 |
| 164 private: | 167 private: |
| 165 PlatformFile* value_; | 168 PlatformFile* value_; |
| 166 }; | 169 }; |
| 167 | 170 |
| 168 } // namespace base | 171 } // namespace base |
| 169 | 172 |
| 170 #endif // BASE_PLATFORM_FILE_H_ | 173 #endif // BASE_PLATFORM_FILE_H_ |
| OLD | NEW |