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

Side by Side Diff: base/file_util_proxy.h

Issue 3282003: Support handling blob URL and resolve blob references in upload data.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 | « no previous file | base/file_util_proxy.cc » ('j') | webkit/blob/blob_url_request_job.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_SYSTEM_PROXY_H_ 5 #ifndef BASE_FILE_SYSTEM_PROXY_H_
6 #define BASE_FILE_SYSTEM_PROXY_H_ 6 #define BASE_FILE_SYSTEM_PROXY_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/platform_file.h" 9 #include "base/platform_file.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
11 #include "base/tracked_objects.h" 11 #include "base/tracked_objects.h"
12 12
13 namespace file_util {
14 struct FileInfo;
15 }
16
13 namespace base { 17 namespace base {
14 18
15 class MessageLoopProxy; 19 class MessageLoopProxy;
16 20
17 // This class provides asynchronous access to common file routines. 21 // This class provides asynchronous access to common file routines.
18 class FileUtilProxy { 22 class FileUtilProxy {
19 public: 23 public:
20 // This callback is used by methods that report only an error code. It is 24 // This callback is used by methods that report only an error code. It is
21 // valid to pass NULL as the callback parameter to any function that takes a 25 // valid to pass NULL as the callback parameter to any function that takes a
22 // StatusCallback, in which case the operation will complete silently. 26 // StatusCallback, in which case the operation will complete silently.
(...skipping 25 matching lines...) Expand all
48 static bool Delete(scoped_refptr<MessageLoopProxy> message_loop_proxy, 52 static bool Delete(scoped_refptr<MessageLoopProxy> message_loop_proxy,
49 const FilePath& file_path, 53 const FilePath& file_path,
50 StatusCallback* callback); 54 StatusCallback* callback);
51 55
52 // Deletes a directory and all of its contents. 56 // Deletes a directory and all of its contents.
53 static bool RecursiveDelete( 57 static bool RecursiveDelete(
54 scoped_refptr<MessageLoopProxy> message_loop_proxy, 58 scoped_refptr<MessageLoopProxy> message_loop_proxy,
55 const FilePath& file_path, 59 const FilePath& file_path,
56 StatusCallback* callback); 60 StatusCallback* callback);
57 61
62 // Retrieves the information about a file. It is invalid to pass NULL for the
63 // callback.
64 typedef Callback2<bool /*exists*/,
65 const file_util::FileInfo& /*file_info*/
66 >::Type GetFileInfoCallback;
67 static bool GetFileInfo(
michaeln 2010/08/31 06:02:15 Oh... it looks like kavita is adding a very simila
68 scoped_refptr<MessageLoopProxy> message_loop_proxy,
69 const FilePath& file_path,
70 GetFileInfoCallback* callback);
71
58 private: 72 private:
59 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy); 73 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy);
60 }; 74 };
61 75
62 } // namespace base 76 } // namespace base
63 77
64 #endif // BASE_FILE_SYSTEM_PROXY_H_ 78 #endif // BASE_FILE_SYSTEM_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | base/file_util_proxy.cc » ('j') | webkit/blob/blob_url_request_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698