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_FILE_UTIL_PROXY_H_ | 5 #ifndef BASE_FILE_UTIL_PROXY_H_ |
6 #define BASE_FILE_UTIL_PROXY_H_ | 6 #define BASE_FILE_UTIL_PROXY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/base_api.h" | 10 #include "base/base_export.h" |
11 #include "base/callback_old.h" | 11 #include "base/callback_old.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/platform_file.h" | 15 #include "base/platform_file.h" |
16 #include "base/tracked_objects.h" | 16 #include "base/tracked_objects.h" |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 | 19 |
20 class MessageLoopProxy; | 20 class MessageLoopProxy; |
21 class Time; | 21 class Time; |
22 | 22 |
23 // This class provides asynchronous access to common file routines. | 23 // This class provides asynchronous access to common file routines. |
24 class BASE_API FileUtilProxy { | 24 class BASE_EXPORT FileUtilProxy { |
25 public: | 25 public: |
26 // Holds metadata for file or directory entry. Used by ReadDirectoryCallback. | 26 // Holds metadata for file or directory entry. Used by ReadDirectoryCallback. |
27 struct Entry { | 27 struct Entry { |
28 FilePath::StringType name; | 28 FilePath::StringType name; |
29 bool is_directory; | 29 bool is_directory; |
30 int64 size; | 30 int64 size; |
31 base::Time last_modified_time; | 31 base::Time last_modified_time; |
32 }; | 32 }; |
33 | 33 |
34 // This callback is used by methods that report only an error code. It is | 34 // This callback is used by methods that report only an error code. It is |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 PlatformFile file, | 216 PlatformFile file, |
217 StatusCallback* callback); | 217 StatusCallback* callback); |
218 | 218 |
219 private: | 219 private: |
220 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy); | 220 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy); |
221 }; | 221 }; |
222 | 222 |
223 } // namespace base | 223 } // namespace base |
224 | 224 |
225 #endif // BASE_FILE_UTIL_PROXY_H_ | 225 #endif // BASE_FILE_UTIL_PROXY_H_ |
OLD | NEW |