Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: base/file_util_proxy.h

Issue 7355013: Adding size and last modified time support to FileEnumerator and FileUtilProxy::Entry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/file_util_posix.cc ('k') | base/file_util_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_api.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_API 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;
31 base::Time last_modified_time;
30 }; 32 };
31 33
32 // 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
33 // valid to pass NULL as the callback parameter to any function that takes a 35 // valid to pass NULL as the callback parameter to any function that takes a
34 // StatusCallback, in which case the operation will complete silently. 36 // StatusCallback, in which case the operation will complete silently.
35 typedef Callback1<PlatformFileError /* error code */>::Type StatusCallback; 37 typedef Callback1<PlatformFileError /* error code */>::Type StatusCallback;
36 38
37 typedef Callback3<PlatformFileError /* error code */, 39 typedef Callback3<PlatformFileError /* error code */,
38 PassPlatformFile, 40 PassPlatformFile,
39 bool /* created */>::Type CreateOrOpenCallback; 41 bool /* created */>::Type CreateOrOpenCallback;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 PlatformFile file, 216 PlatformFile file,
215 StatusCallback* callback); 217 StatusCallback* callback);
216 218
217 private: 219 private:
218 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy); 220 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy);
219 }; 221 };
220 222
221 } // namespace base 223 } // namespace base
222 224
223 #endif // BASE_FILE_UTIL_PROXY_H_ 225 #endif // BASE_FILE_UTIL_PROXY_H_
OLDNEW
« no previous file with comments | « base/file_util_posix.cc ('k') | base/file_util_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698