summaryrefslogtreecommitdiffstats
path: root/base/file_util_proxy.h
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-02 12:14:18 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-02 12:14:18 +0000
commite1514f400c33e31b42cd6fc6f6dfbe8dd9970a9a (patch)
treed174f1597de79c06ef7e6e8d47e0c5948a55bd35 /base/file_util_proxy.h
parent510fbf797525f0389fe9ce4fd2f234922960b206 (diff)
downloadchromium_src-e1514f400c33e31b42cd6fc6f6dfbe8dd9970a9a.zip
chromium_src-e1514f400c33e31b42cd6fc6f6dfbe8dd9970a9a.tar.gz
chromium_src-e1514f400c33e31b42cd6fc6f6dfbe8dd9970a9a.tar.bz2
Revert 108258 - broke Mac LayoutTests.
Merge FileUtilProxy and FileSystemFileUtilProxy using PostTaskAndReply: CreateOrOpen/Close Deprecating MessageProxyRelay class and getting rid of duplicated code. BUG=none TEST=test_shell_tests:\*FileSystem\* Review URL: http://codereview.chromium.org/8424006 TBR=kinuko@chromium.org Review URL: http://codereview.chromium.org/8423041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108274 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_proxy.h')
-rw-r--r--base/file_util_proxy.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/base/file_util_proxy.h b/base/file_util_proxy.h
index 15a3e82..eb1d144 100644
--- a/base/file_util_proxy.h
+++ b/base/file_util_proxy.h
@@ -32,7 +32,7 @@ class BASE_EXPORT FileUtilProxy {
};
// This callback is used by methods that report only an error code. It is
- // valid to pass a null callback to any function that takes a StatusCallback,
+ // valid to pass StatusCallback() to any function that takes a StatusCallback,
// in which case the operation will complete silently.
typedef Callback<void(PlatformFileError)> StatusCallback;
@@ -51,9 +51,6 @@ class BASE_EXPORT FileUtilProxy {
typedef Callback<void(PlatformFileError,
int /* bytes written */)> WriteCallback;
- typedef Callback<PlatformFileError(PlatformFile*, bool*)> CreateOrOpenTask;
- typedef Callback<PlatformFileError(PlatformFile)> CloseTask;
-
// Creates or opens a file with the given flags. It is invalid to pass a null
// callback. If PLATFORM_FILE_CREATE is set in |file_flags| it always tries to
// create a new file at the given |file_path| and calls back with
@@ -167,19 +164,6 @@ class BASE_EXPORT FileUtilProxy {
PlatformFile file,
const StatusCallback& callback);
- // Relay helpers.
- static bool RelayCreateOrOpen(
- scoped_refptr<MessageLoopProxy> message_loop_proxy,
- const CreateOrOpenTask& open_task,
- const CloseTask& close_task,
- const CreateOrOpenCallback& callback);
-
- static bool RelayClose(
- scoped_refptr<MessageLoopProxy> message_loop_proxy,
- const CloseTask& close_task,
- PlatformFile,
- const StatusCallback& callback);
-
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy);
};