| Index: base/file_util_proxy.cc
|
| diff --git a/base/file_util_proxy.cc b/base/file_util_proxy.cc
|
| index bd089091f73ef550a2e5b7e0aab1fee02a3e2144..b4d0d54b0ed178431730cdd392f7d8824f1f5f6f 100644
|
| --- a/base/file_util_proxy.cc
|
| +++ b/base/file_util_proxy.cc
|
| @@ -747,17 +747,6 @@ bool FileUtilProxy::CreateTemporary(
|
| }
|
|
|
| // static
|
| -bool FileUtilProxy::CreateDirectory(
|
| - scoped_refptr<MessageLoopProxy> message_loop_proxy,
|
| - const FilePath& file_path,
|
| - bool exclusive,
|
| - bool recursive,
|
| - StatusCallback* callback) {
|
| - return Start(FROM_HERE, message_loop_proxy, new RelayCreateDirectory(
|
| - file_path, exclusive, recursive, callback));
|
| -}
|
| -
|
| -// static
|
| bool FileUtilProxy::Close(scoped_refptr<MessageLoopProxy> message_loop_proxy,
|
| base::PlatformFile file_handle,
|
| StatusCallback* callback) {
|
| @@ -774,13 +763,43 @@ bool FileUtilProxy::EnsureFileExists(
|
| message_loop_proxy, file_path, callback));
|
| }
|
|
|
| +// Retrieves the information about a file. It is invalid to pass NULL for the
|
| +// callback.
|
| +bool FileUtilProxy::GetFileInfo(
|
| + scoped_refptr<MessageLoopProxy> message_loop_proxy,
|
| + const FilePath& file_path,
|
| + GetFileInfoCallback* callback) {
|
| + return Start(FROM_HERE, message_loop_proxy, new RelayGetFileInfo(
|
| + file_path, callback));
|
| +}
|
| +
|
| // static
|
| -bool FileUtilProxy::Delete(scoped_refptr<MessageLoopProxy> message_loop_proxy,
|
| - const FilePath& file_path,
|
| - bool recursive,
|
| - StatusCallback* callback) {
|
| +bool FileUtilProxy::GetFileInfoFromPlatformFile(
|
| + scoped_refptr<MessageLoopProxy> message_loop_proxy,
|
| + PlatformFile file,
|
| + GetFileInfoCallback* callback) {
|
| return Start(FROM_HERE, message_loop_proxy,
|
| - new RelayDelete(file_path, recursive, callback));
|
| + new RelayGetFileInfoFromPlatformFile(file, callback));
|
| +}
|
| +
|
| +// static
|
| +bool FileUtilProxy::ReadDirectory(
|
| + scoped_refptr<MessageLoopProxy> message_loop_proxy,
|
| + const FilePath& file_path,
|
| + ReadDirectoryCallback* callback) {
|
| + return Start(FROM_HERE, message_loop_proxy, new RelayReadDirectory(
|
| + file_path, callback));
|
| +}
|
| +
|
| +// static
|
| +bool FileUtilProxy::CreateDirectory(
|
| + scoped_refptr<MessageLoopProxy> message_loop_proxy,
|
| + const FilePath& file_path,
|
| + bool exclusive,
|
| + bool recursive,
|
| + StatusCallback* callback) {
|
| + return Start(FROM_HERE, message_loop_proxy, new RelayCreateDirectory(
|
| + file_path, exclusive, recursive, callback));
|
| }
|
|
|
| // static
|
| @@ -802,22 +821,12 @@ bool FileUtilProxy::Move(scoped_refptr<MessageLoopProxy> message_loop_proxy,
|
| }
|
|
|
| // static
|
| -bool FileUtilProxy::ReadDirectory(
|
| - scoped_refptr<MessageLoopProxy> message_loop_proxy,
|
| - const FilePath& file_path,
|
| - ReadDirectoryCallback* callback) {
|
| - return Start(FROM_HERE, message_loop_proxy, new RelayReadDirectory(
|
| - file_path, callback));
|
| -}
|
| -
|
| -// Retrieves the information about a file. It is invalid to pass NULL for the
|
| -// callback.
|
| -bool FileUtilProxy::GetFileInfo(
|
| - scoped_refptr<MessageLoopProxy> message_loop_proxy,
|
| - const FilePath& file_path,
|
| - GetFileInfoCallback* callback) {
|
| - return Start(FROM_HERE, message_loop_proxy, new RelayGetFileInfo(
|
| - file_path, callback));
|
| +bool FileUtilProxy::Delete(scoped_refptr<MessageLoopProxy> message_loop_proxy,
|
| + const FilePath& file_path,
|
| + bool recursive,
|
| + StatusCallback* callback) {
|
| + return Start(FROM_HERE, message_loop_proxy,
|
| + new RelayDelete(file_path, recursive, callback));
|
| }
|
|
|
| // static
|
| @@ -830,15 +839,6 @@ bool FileUtilProxy::RecursiveDelete(
|
| }
|
|
|
| // static
|
| -bool FileUtilProxy::GetFileInfoFromPlatformFile(
|
| - scoped_refptr<MessageLoopProxy> message_loop_proxy,
|
| - PlatformFile file,
|
| - GetFileInfoCallback* callback) {
|
| - return Start(FROM_HERE, message_loop_proxy,
|
| - new RelayGetFileInfoFromPlatformFile(file, callback));
|
| -}
|
| -
|
| -// static
|
| bool FileUtilProxy::Read(
|
| scoped_refptr<MessageLoopProxy> message_loop_proxy,
|
| PlatformFile file,
|
|
|