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

Unified Diff: webkit/fileapi/file_system_operation.cc

Issue 8999017: Add CreateFileSystemOperation() method to FileSystemContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang build fix Created 8 years, 11 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
« no previous file with comments | « webkit/fileapi/file_system_operation.h ('k') | webkit/fileapi/file_system_operation_interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_operation.cc
diff --git a/webkit/fileapi/file_system_operation.cc b/webkit/fileapi/file_system_operation.cc
index 718928717cb6b0d6de20b6f436778c867a887033..c0b922bf939cbd054dcc4135efc9657f1919e4c4 100644
--- a/webkit/fileapi/file_system_operation.cc
+++ b/webkit/fileapi/file_system_operation.cc
@@ -57,19 +57,6 @@ FileSystemOperation::ScopedQuotaUtilHelper::~ScopedQuotaUtilHelper() {
}
}
-FileSystemOperation::FileSystemOperation(
- scoped_ptr<FileSystemCallbackDispatcher> dispatcher,
- scoped_refptr<base::MessageLoopProxy> proxy,
- FileSystemContext* file_system_context)
- : proxy_(proxy),
- dispatcher_(dispatcher.Pass()),
- operation_context_(file_system_context, NULL),
- peer_handle_(base::kNullProcessHandle) {
-#ifndef NDEBUG
- pending_operation_ = kOperationNone;
-#endif
-}
-
FileSystemOperation::~FileSystemOperation() {
if (file_writer_delegate_.get()) {
FileSystemOperationContext* c =
@@ -521,6 +508,10 @@ void FileSystemOperation::Cancel(
}
}
+FileSystemOperation* FileSystemOperation::AsFileSystemOperation() {
+ return this;
+}
+
void FileSystemOperation::SyncGetPlatformPath(const GURL& path,
FilePath* platform_path) {
#ifndef NDEBUG
@@ -538,6 +529,19 @@ void FileSystemOperation::SyncGetPlatformPath(const GURL& path,
delete this;
}
+FileSystemOperation::FileSystemOperation(
+ scoped_ptr<FileSystemCallbackDispatcher> dispatcher,
+ scoped_refptr<base::MessageLoopProxy> proxy,
+ FileSystemContext* file_system_context)
+ : proxy_(proxy),
+ dispatcher_(dispatcher.Pass()),
+ operation_context_(file_system_context, NULL),
+ peer_handle_(base::kNullProcessHandle) {
+#ifndef NDEBUG
+ pending_operation_ = kOperationNone;
+#endif
+}
+
void FileSystemOperation::GetUsageAndQuotaThenCallback(
const GURL& origin_url,
const quota::QuotaManager::GetUsageAndQuotaCallback& callback) {
« no previous file with comments | « webkit/fileapi/file_system_operation.h ('k') | webkit/fileapi/file_system_operation_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698