Index: base/file_util_proxy.h |
diff --git a/base/file_util_proxy.h b/base/file_util_proxy.h |
index 30f051b52987eaf57b7dc88b3d53ba57a7273eb3..808c60e03fc1e9b0ee3bf3b1a4062d504c12cb73 100644 |
--- a/base/file_util_proxy.h |
+++ b/base/file_util_proxy.h |
@@ -8,6 +8,7 @@ |
#include <vector> |
#include "base/base_export.h" |
+#include "base/callback.h" |
#include "base/callback_old.h" |
#include "base/file_path.h" |
#include "base/file_util.h" |
@@ -38,9 +39,9 @@ class BASE_EXPORT FileUtilProxy { |
// deleted by the function even on failure. |
typedef Callback1<PlatformFileError /* error code */>::Type StatusCallback; |
- typedef Callback3<PlatformFileError /* error code */, |
- PassPlatformFile, |
- bool /* created */>::Type CreateOrOpenCallback; |
+ typedef base::Callback<void(PlatformFileError /* error code */, |
+ PassPlatformFile, |
+ bool /* created */)> CreateOrOpenCallback; |
typedef Callback3<PlatformFileError /* error code */, |
PassPlatformFile, |
FilePath>::Type CreateTemporaryCallback; |
@@ -66,7 +67,7 @@ class BASE_EXPORT FileUtilProxy { |
static bool CreateOrOpen(scoped_refptr<MessageLoopProxy> message_loop_proxy, |
const FilePath& file_path, |
int file_flags, |
- CreateOrOpenCallback* callback); |
+ const CreateOrOpenCallback& callback); |
// Creates a temporary file for writing. The path and an open file handle |
// are returned. It is invalid to pass NULL for the callback. The additional |