summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_path_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/fileapi/file_system_path_manager.h')
-rw-r--r--webkit/fileapi/file_system_path_manager.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/webkit/fileapi/file_system_path_manager.h b/webkit/fileapi/file_system_path_manager.h
index 5c9600c..34aebac 100644
--- a/webkit/fileapi/file_system_path_manager.h
+++ b/webkit/fileapi/file_system_path_manager.h
@@ -6,7 +6,7 @@
#define WEBKIT_FILEAPI_FILE_SYSTEM_PATH_MANAGER_H_
#pragma once
-#include "base/callback_old.h"
+#include "base/callback.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "webkit/fileapi/file_system_types.h"
@@ -40,9 +40,10 @@ class FileSystemPathManager {
// If the request is accepted, |create| is specified for
// GetFileSystemRootPath, and the root directory does not exist, it creates
// a new one and calls back with success=true if the creation has succeeded.
- typedef Callback3<bool /* success */,
- const FilePath& /* root_path */,
- const std::string& /* name */>::Type GetRootPathCallback;
+ typedef base::Callback<void(bool /* success */,
+ const FilePath& /* root_path */,
+ const std::string& /* name */)>
+ GetRootPathCallback;
// Retrieves the root path for the given |origin_url| and |type|, and
// calls the given |callback| with the root path and name.
@@ -51,7 +52,7 @@ class FileSystemPathManager {
const GURL& origin_url,
FileSystemType type,
bool create,
- FileSystemPathManager::GetRootPathCallback* callback);
+ const FileSystemPathManager::GetRootPathCallback& callback);
// Like GetFileSystemRootPath, but synchronous, and can be called only while
// running on the file thread.