summaryrefslogtreecommitdiffstats
path: root/base/file_util_proxy.h
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-09 22:48:44 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-09 22:48:44 +0000
commit5438ddec244232cb54ba95455d8745ea577c0578 (patch)
tree8fd26d537d06afc80da95d3c990ae8ec20e59154 /base/file_util_proxy.h
parentc6e7f04cdec7b8a4348e6ff9310c67236deca6d0 (diff)
downloadchromium_src-5438ddec244232cb54ba95455d8745ea577c0578.zip
chromium_src-5438ddec244232cb54ba95455d8745ea577c0578.tar.gz
chromium_src-5438ddec244232cb54ba95455d8745ea577c0578.tar.bz2
Revert 59007 - Adding some utility functions that work on file handles, and adding
the corresponding relays to file_util_proxy. BUG=none TEST=none Review URL: http://codereview.chromium.org/3303007 TBR=dumi@chromium.org Review URL: http://codereview.chromium.org/3371011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59013 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_proxy.h')
-rw-r--r--base/file_util_proxy.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/base/file_util_proxy.h b/base/file_util_proxy.h
index 581738d..929dcd7 100644
--- a/base/file_util_proxy.h
+++ b/base/file_util_proxy.h
@@ -72,11 +72,6 @@ class FileUtilProxy {
const FilePath& file_path,
GetFileInfoCallback* callback);
- static bool GetFileInfoFromPlatformFile(
- scoped_refptr<MessageLoopProxy> message_loop_proxy,
- base::PlatformFile file,
- GetFileInfoCallback* callback);
-
typedef Callback2<base::PlatformFileError /* error code */,
const std::vector<base::file_util_proxy::Entry>&
>::Type ReadDirectoryCallback;
@@ -124,52 +119,6 @@ class FileUtilProxy {
const FilePath& file_path,
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.
- typedef Callback2<base::PlatformFileError /* error code */,
- int /* bytes read/written */>::Type ReadWriteCallback;
- static bool Read(
- scoped_refptr<MessageLoopProxy> message_loop_proxy,
- base::PlatformFile file,
- int64 offset,
- char* buffer,
- int bytes_to_read,
- ReadWriteCallback* 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
- // |offset + bytes_to_write| in the file. If The callback can be NULL.
- static bool Write(
- scoped_refptr<MessageLoopProxy> message_loop_proxy,
- base::PlatformFile file,
- int64 offset,
- const char* buffer,
- int bytes_to_write,
- ReadWriteCallback* callback);
-
- // Touches a file. The callback can be NULL.
- static bool Touch(
- scoped_refptr<MessageLoopProxy> message_loop_proxy,
- base::PlatformFile file,
- const base::Time& last_access_time,
- const base::Time& last_modified_time,
- StatusCallback* callback);
-
- // Truncates a file to the given length. If |length| is greater than the
- // current length of the file, the file will be extended with zeroes.
- // The callback can be NULL.
- static bool Truncate(
- scoped_refptr<MessageLoopProxy> message_loop_proxy,
- base::PlatformFile file,
- long long length,
- StatusCallback* callback);
-
- // Flushes a file. The callback can be NULL.
- static bool Flush(
- scoped_refptr<MessageLoopProxy> message_loop_proxy,
- base::PlatformFile file,
- StatusCallback* callback);
-
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy);
};