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

Unified Diff: webkit/browser/fileapi/file_system_operation_impl.cc

Issue 23135019: Make SyncableFileSystemOperation not inherit from FileSystemOperationImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: webkit/browser/fileapi/file_system_operation_impl.cc
diff --git a/webkit/browser/fileapi/file_system_operation_impl.cc b/webkit/browser/fileapi/file_system_operation_impl.cc
index 60f79901923b2133788889ed6e16e3edf83fd926..19c678fc5fe8755a720856370fb11219e17d4818 100644
--- a/webkit/browser/fileapi/file_system_operation_impl.cc
+++ b/webkit/browser/fileapi/file_system_operation_impl.cc
@@ -237,22 +237,6 @@ void FileSystemOperationImpl::Cancel(const StatusCallback& cancel_callback) {
}
}
-FileSystemOperationImpl* FileSystemOperationImpl::AsFileSystemOperationImpl() {
- return this;
-}
-
-base::PlatformFileError FileSystemOperationImpl::SyncGetPlatformPath(
- const FileSystemURL& url,
- base::FilePath* platform_path) {
- DCHECK(SetPendingOperationType(kOperationGetLocalPath));
- FileSystemFileUtil* file_util = file_system_context()->GetFileUtil(
- url.type());
- if (!file_util)
- return base::PLATFORM_FILE_ERROR_INVALID_OPERATION;
- file_util->GetLocalFilePath(operation_context_.get(), url, platform_path);
- return base::PLATFORM_FILE_OK;
-}
-
void FileSystemOperationImpl::CreateSnapshotFile(
const FileSystemURL& url,
const SnapshotFileCallback& callback) {
@@ -320,6 +304,18 @@ void FileSystemOperationImpl::MoveFileLocal(
base::Bind(callback, base::PLATFORM_FILE_ERROR_FAILED));
}
+base::PlatformFileError FileSystemOperationImpl::SyncGetPlatformPath(
+ const FileSystemURL& url,
+ base::FilePath* platform_path) {
+ DCHECK(SetPendingOperationType(kOperationGetLocalPath));
+ FileSystemFileUtil* file_util = file_system_context()->GetFileUtil(
+ url.type());
+ if (!file_util)
+ return base::PLATFORM_FILE_ERROR_INVALID_OPERATION;
+ file_util->GetLocalFilePath(operation_context_.get(), url, platform_path);
+ return base::PLATFORM_FILE_OK;
+}
+
void FileSystemOperationImpl::GetUsageAndQuotaThenRunTask(
const FileSystemURL& url,
const base::Closure& task,
« no previous file with comments | « webkit/browser/fileapi/file_system_operation_impl.h ('k') | webkit/browser/fileapi/file_system_operation_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698