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

Unified Diff: webkit/fileapi/file_system_test_helper.cc

Issue 9380040: Revert 121620 - Refactor FileSystemOperation to take callback for each method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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_test_helper.h ('k') | webkit/fileapi/file_system_url_request_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_test_helper.cc
===================================================================
--- webkit/fileapi/file_system_test_helper.cc (revision 121622)
+++ webkit/fileapi/file_system_test_helper.cc (working copy)
@@ -8,6 +8,7 @@
#include "base/message_loop.h"
#include "base/message_loop_proxy.h"
#include "googleurl/src/gurl.h"
+#include "webkit/fileapi/file_system_callback_dispatcher.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_operation.h"
#include "webkit/fileapi/file_system_operation_context.h"
@@ -140,11 +141,14 @@
return size;
}
-FileSystemOperation* FileSystemTestOriginHelper::NewOperation() {
+FileSystemOperation* FileSystemTestOriginHelper::NewOperation(
+ FileSystemCallbackDispatcher* callback_dispatcher) {
DCHECK(file_system_context_.get());
DCHECK(file_util_);
FileSystemOperation* operation =
- new FileSystemOperation(base::MessageLoopProxy::current(),
+ new FileSystemOperation(scoped_ptr<FileSystemCallbackDispatcher>(
+ callback_dispatcher),
+ base::MessageLoopProxy::current(),
file_system_context_.get());
operation->set_override_file_util(file_util_);
InitializeOperationContext(operation->file_system_operation_context());
« no previous file with comments | « webkit/fileapi/file_system_test_helper.h ('k') | webkit/fileapi/file_system_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698