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

Unified Diff: webkit/fileapi/file_system_operation.h

Issue 10197007: Change webkit/{fileapi,quota} code to use TaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixesz Created 8 years, 8 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/fileapi/file_system_operation.h
diff --git a/webkit/fileapi/file_system_operation.h b/webkit/fileapi/file_system_operation.h
index 380e3ee51803e2c639695a5acfab758316f63c56..651fe9fb529ea3a144a08f3c5a5944e401fd23d9 100644
--- a/webkit/fileapi/file_system_operation.h
+++ b/webkit/fileapi/file_system_operation.h
@@ -13,7 +13,6 @@
#include "base/gtest_prod_util.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "base/message_loop_proxy.h"
#include "base/platform_file.h"
#include "base/process.h"
#include "googleurl/src/gurl.h"
@@ -24,6 +23,7 @@
namespace base {
class Time;
+class SequencedTaskRunner;
}
namespace chromeos {
@@ -130,7 +130,7 @@ class FileSystemOperation : public FileSystemOperationInterface {
friend class FileSystemTestOriginHelper;
friend class FileSystemQuotaTest;
- FileSystemOperation(scoped_refptr<base::MessageLoopProxy> proxy,
+ FileSystemOperation(base::SequencedTaskRunner* task_runner,
michaeln 2012/04/27 22:31:08 similarly, maybe the 'runner' could be picked up f
kinuko 2012/05/04 19:05:35 Done.
FileSystemContext* file_system_context);
FileSystemContext* file_system_context() const {
@@ -236,8 +236,8 @@ class FileSystemOperation : public FileSystemOperationInterface {
// Returns false if there's another inflight pending operation.
bool SetPendingOperationType(OperationType type);
- // Proxy for calling file_util_proxy methods.
- scoped_refptr<base::MessageLoopProxy> proxy_;
+ // Task runner for making file operations.
+ scoped_refptr<base::SequencedTaskRunner> task_runner_;
FileSystemOperationContext operation_context_;
FileSystemPath src_path_;

Powered by Google App Engine
This is Rietveld 408576698