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

Side by Side Diff: webkit/fileapi/file_system_file_util_proxy.h

Issue 8311012: base::Bind: Convert FileUtilProxy::EnsureFileExistsCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pipelining. Created 9 years, 2 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_proxy.cc ('k') | webkit/fileapi/file_system_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 WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // |created| of the callback argument is set true and |error code| 68 // |created| of the callback argument is set true and |error code|
69 // is set PLATFORM_FILE_OK. 69 // is set PLATFORM_FILE_OK.
70 // If the file already exists, |created| is set false and |error code| 70 // If the file already exists, |created| is set false and |error code|
71 // is set PLATFORM_FILE_OK. 71 // is set PLATFORM_FILE_OK.
72 // If the file hasn't existed but it couldn't be created for some other 72 // If the file hasn't existed but it couldn't be created for some other
73 // reasons, |created| is set false and |error code| indicates the error. 73 // reasons, |created| is set false and |error code| indicates the error.
74 static bool EnsureFileExists( 74 static bool EnsureFileExists(
75 const FileSystemOperationContext& context, 75 const FileSystemOperationContext& context,
76 scoped_refptr<MessageLoopProxy> message_loop_proxy, 76 scoped_refptr<MessageLoopProxy> message_loop_proxy,
77 const FilePath& file_path, 77 const FilePath& file_path,
78 EnsureFileExistsCallback* callback); 78 const EnsureFileExistsCallback& callback);
79 79
80 // Maps virtual file patch to its local physical location. 80 // Maps virtual file patch to its local physical location.
81 static bool GetLocalPath( 81 static bool GetLocalPath(
82 const FileSystemOperationContext& context, 82 const FileSystemOperationContext& context,
83 scoped_refptr<MessageLoopProxy> message_loop_proxy, 83 scoped_refptr<MessageLoopProxy> message_loop_proxy,
84 const FilePath& virtual_path, 84 const FilePath& virtual_path,
85 GetLocalPathCallback* callback); 85 GetLocalPathCallback* callback);
86 86
87 // Retrieves the information about a file. It is invalid to pass NULL for the 87 // Retrieves the information about a file. It is invalid to pass NULL for the
88 // callback. 88 // callback.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 int64 length, 157 int64 length,
158 StatusCallback* callback); 158 StatusCallback* callback);
159 159
160 private: 160 private:
161 DISALLOW_IMPLICIT_CONSTRUCTORS(FileSystemFileUtilProxy); 161 DISALLOW_IMPLICIT_CONSTRUCTORS(FileSystemFileUtilProxy);
162 }; 162 };
163 163
164 } // namespace fileapi 164 } // namespace fileapi
165 165
166 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_ 166 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_PROXY_H_
OLDNEW
« no previous file with comments | « base/file_util_proxy.cc ('k') | webkit/fileapi/file_system_file_util_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698