summaryrefslogtreecommitdiffstats
path: root/base/file_util_proxy.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-17 18:40:30 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-17 18:40:30 +0000
commit30c1eea51e20355f11cc37b1bf82ac11644ab2b8 (patch)
treeb031284a67e6d1618427301c83cd2ff6106b645e /base/file_util_proxy.h
parent35d5280876154e0dab2f472314e49dce2ced217b (diff)
downloadchromium_src-30c1eea51e20355f11cc37b1bf82ac11644ab2b8.zip
chromium_src-30c1eea51e20355f11cc37b1bf82ac11644ab2b8.tar.gz
chromium_src-30c1eea51e20355f11cc37b1bf82ac11644ab2b8.tar.bz2
base::Bind: Convert FileUtilProxy::CreateOrOpenCallback.
BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8311010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105860 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_proxy.h')
-rw-r--r--base/file_util_proxy.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/base/file_util_proxy.h b/base/file_util_proxy.h
index 30f051b..808c60e 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