Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc

Issue 10870040: Rename FileSystemOperationInterface to FileSystemOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc b/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc
index c5e25f6bdaad2cfcc919287fb7d05e7a68b2311c..7e456aca1b1155e6a252d0c633754193ad4b0d58 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc
@@ -26,7 +26,7 @@
using base::MessageLoopProxy;
using content::BrowserThread;
using fileapi::FileSystemURL;
-using fileapi::FileSystemOperationInterface;
+using fileapi::FileSystemOperation;
using webkit_blob::ShareableFileReference;
namespace gdata {
@@ -51,7 +51,7 @@ void OpenPlatformFileOnIOPool(const FilePath& local_path,
// Helper function to run reply on results of OpenPlatformFileOnIOPool() on
// IO thread.
void OnPlatformFileOpened(
- const FileSystemOperationInterface::OpenFileCallback& callback,
+ const FileSystemOperation::OpenFileCallback& callback,
base::ProcessHandle peer_handle,
base::PlatformFile* platform_file,
base::PlatformFileError* open_error) {
@@ -61,7 +61,7 @@ void OnPlatformFileOpened(
// Helper function to run OpenFileCallback from
// GDataFileSystemProxy::OpenFile().
void OnGetFileByPathForOpen(
- const FileSystemOperationInterface::OpenFileCallback& callback,
+ const FileSystemOperation::OpenFileCallback& callback,
int file_flags,
base::ProcessHandle peer_handle,
GDataFileError gdata_error,
@@ -95,7 +95,7 @@ void OnGetFileByPathForOpen(
// Helper function to run SnapshotFileCallback from
// GDataFileSystemProxy::CreateSnapshotFile().
void CallSnapshotFileCallback(
- const FileSystemOperationInterface::SnapshotFileCallback& callback,
+ const FileSystemOperation::SnapshotFileCallback& callback,
const base::PlatformFileInfo& file_info,
GDataFileError gdata_error,
const FilePath& local_path,
@@ -152,7 +152,7 @@ void DoTruncateOnFileThread(
}
void DidCloseFileForTruncate(
- const FileSystemOperationInterface::StatusCallback& callback,
+ const FileSystemOperation::StatusCallback& callback,
base::PlatformFileError truncate_result,
GDataFileError close_result) {
// Reports the first error.
@@ -187,7 +187,7 @@ GDataFileSystemProxy::GDataFileSystemProxy(
}
void GDataFileSystemProxy::GetFileInfo(const FileSystemURL& file_url,
- const FileSystemOperationInterface::GetMetadataCallback& callback) {
+ const FileSystemOperation::GetMetadataCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
FilePath file_path;
if (!ValidateUrl(file_url, &file_path)) {
@@ -209,7 +209,7 @@ void GDataFileSystemProxy::GetFileInfo(const FileSystemURL& file_url,
void GDataFileSystemProxy::Copy(const FileSystemURL& src_file_url,
const FileSystemURL& dest_file_url,
- const FileSystemOperationInterface::StatusCallback& callback) {
+ const FileSystemOperation::StatusCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
FilePath src_file_path, dest_file_path;
@@ -228,7 +228,7 @@ void GDataFileSystemProxy::Copy(const FileSystemURL& src_file_url,
void GDataFileSystemProxy::Move(const FileSystemURL& src_file_url,
const FileSystemURL& dest_file_url,
- const FileSystemOperationInterface::StatusCallback& callback) {
+ const FileSystemOperation::StatusCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
FilePath src_file_path, dest_file_path;
@@ -246,7 +246,7 @@ void GDataFileSystemProxy::Move(const FileSystemURL& src_file_url,
}
void GDataFileSystemProxy::ReadDirectory(const FileSystemURL& file_url,
- const FileSystemOperationInterface::ReadDirectoryCallback& callback) {
+ const FileSystemOperation::ReadDirectoryCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
FilePath file_path;
@@ -268,7 +268,7 @@ void GDataFileSystemProxy::ReadDirectory(const FileSystemURL& file_url,
}
void GDataFileSystemProxy::Remove(const FileSystemURL& file_url, bool recursive,
- const FileSystemOperationInterface::StatusCallback& callback) {
+ const FileSystemOperation::StatusCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
FilePath file_path;
@@ -288,7 +288,7 @@ void GDataFileSystemProxy::CreateDirectory(
const FileSystemURL& file_url,
bool exclusive,
bool recursive,
- const FileSystemOperationInterface::StatusCallback& callback) {
+ const FileSystemOperation::StatusCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
FilePath file_path;
@@ -308,7 +308,7 @@ void GDataFileSystemProxy::CreateDirectory(
void GDataFileSystemProxy::CreateFile(
const FileSystemURL& file_url,
bool exclusive,
- const FileSystemOperationInterface::StatusCallback& callback) {
+ const FileSystemOperation::StatusCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
FilePath file_path;
@@ -326,7 +326,7 @@ void GDataFileSystemProxy::CreateFile(
void GDataFileSystemProxy::Truncate(
const FileSystemURL& file_url, int64 length,
- const FileSystemOperationInterface::StatusCallback& callback) {
+ const FileSystemOperation::StatusCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
if (length < 0) {
@@ -357,7 +357,7 @@ void GDataFileSystemProxy::Truncate(
void GDataFileSystemProxy::OnOpenFileForWriting(
int file_flags,
base::ProcessHandle peer_handle,
- const FileSystemOperationInterface::OpenFileCallback& callback,
+ const FileSystemOperation::OpenFileCallback& callback,
GDataFileError gdata_error,
const FilePath& local_cache_path) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -394,7 +394,7 @@ void GDataFileSystemProxy::OnCreateFileForOpen(
const FilePath& file_path,
int file_flags,
base::ProcessHandle peer_handle,
- const FileSystemOperationInterface::OpenFileCallback& callback,
+ const FileSystemOperation::OpenFileCallback& callback,
GDataFileError gdata_error) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
base::PlatformFileError create_result =
@@ -426,7 +426,7 @@ void GDataFileSystemProxy::OnCreateFileForOpen(
void GDataFileSystemProxy::OnFileOpenedForTruncate(
const FilePath& virtual_path,
int64 length,
- const fileapi::FileSystemOperationInterface::StatusCallback& callback,
+ const fileapi::FileSystemOperation::StatusCallback& callback,
GDataFileError open_result,
const FilePath& local_cache_path) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -457,7 +457,7 @@ void GDataFileSystemProxy::OnFileOpenedForTruncate(
void GDataFileSystemProxy::DidTruncate(
const FilePath& virtual_path,
- const FileSystemOperationInterface::StatusCallback& callback,
+ const FileSystemOperation::StatusCallback& callback,
base::PlatformFileError* truncate_result) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -474,7 +474,7 @@ void GDataFileSystemProxy::OpenFile(
const FileSystemURL& file_url,
int file_flags,
base::ProcessHandle peer_handle,
- const FileSystemOperationInterface::OpenFileCallback& callback) {
+ const FileSystemOperation::OpenFileCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
FilePath file_path;
@@ -556,7 +556,7 @@ void GDataFileSystemProxy::NotifyCloseFile(const FileSystemURL& url) {
void GDataFileSystemProxy::CreateSnapshotFile(
const FileSystemURL& file_url,
- const FileSystemOperationInterface::SnapshotFileCallback& callback) {
+ const FileSystemOperation::SnapshotFileCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
FilePath file_path;
@@ -580,7 +580,7 @@ void GDataFileSystemProxy::CreateSnapshotFile(
void GDataFileSystemProxy::OnGetEntryInfoByPath(
const FilePath& entry_path,
- const FileSystemOperationInterface::SnapshotFileCallback& callback,
+ const FileSystemOperation::SnapshotFileCallback& callback,
GDataFileError error,
scoped_ptr<DriveEntryProto> entry_proto) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -647,14 +647,14 @@ bool GDataFileSystemProxy::ValidateUrl(
}
void GDataFileSystemProxy::OnStatusCallback(
- const fileapi::FileSystemOperationInterface::StatusCallback& callback,
+ const fileapi::FileSystemOperation::StatusCallback& callback,
GDataFileError error) {
callback.Run(util::GDataFileErrorToPlatformError(error));
}
void GDataFileSystemProxy::OnGetMetadata(
const FilePath& file_path,
- const FileSystemOperationInterface::GetMetadataCallback& callback,
+ const FileSystemOperation::GetMetadataCallback& callback,
GDataFileError error,
scoped_ptr<DriveEntryProto> entry_proto) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -676,7 +676,7 @@ void GDataFileSystemProxy::OnGetMetadata(
}
void GDataFileSystemProxy::OnReadDirectory(
- const FileSystemOperationInterface::ReadDirectoryCallback&
+ const FileSystemOperation::ReadDirectoryCallback&
callback,
GDataFileError error,
bool hide_hosted_documents,

Powered by Google App Engine
This is Rietveld 408576698