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

Unified Diff: base/file_util_proxy.h

Issue 8294015: base::Bind: Convert FileUtilProxy::ReadCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/file_util_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_proxy.h
diff --git a/base/file_util_proxy.h b/base/file_util_proxy.h
index 306d2e46f83dd03be5a80c42cbab397c5f10ecba..afa36a0019d74655fa6334055216899ac8318be9 100644
--- a/base/file_util_proxy.h
+++ b/base/file_util_proxy.h
@@ -52,9 +52,9 @@ class BASE_EXPORT FileUtilProxy {
GetFileInfoCallback;
typedef base::Callback<void(PlatformFileError /* error code */,
const std::vector<Entry>&)> ReadDirectoryCallback;
- typedef Callback3<PlatformFileError /* error code */,
- const char* /* data */,
- int /* bytes read/written */>::Type ReadCallback;
+ typedef base::Callback<void(PlatformFileError /* error code */,
+ const char* /* data */,
+ int /* bytes read/written */)> ReadCallback;
typedef Callback2<PlatformFileError /* error code */,
int /* bytes written */>::Type WriteCallback;
@@ -161,13 +161,13 @@ class BASE_EXPORT FileUtilProxy {
StatusCallback* callback);
// Reads from a file. On success, the file pointer is moved to position
- // |offset + bytes_to_read| in the file. The callback can be NULL.
+ // |offset + bytes_to_read| in the file. The callback can be null.
static bool Read(
scoped_refptr<MessageLoopProxy> message_loop_proxy,
PlatformFile file,
int64 offset,
int bytes_to_read,
- ReadCallback* callback);
+ const ReadCallback& callback);
// Writes to a file. If |offset| is greater than the length of the file,
// |false| is returned. On success, the file pointer is moved to position
« no previous file with comments | « no previous file | base/file_util_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698