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

Unified Diff: webkit/fileapi/file_writer_delegate.h

Issue 10197007: Change webkit/{fileapi,quota} code to use TaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix 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_writer_delegate.h
diff --git a/webkit/fileapi/file_writer_delegate.h b/webkit/fileapi/file_writer_delegate.h
index dbb2d7c140f181ab7e5ee13203674567284324a7..e167f75fff17073a35b92e3fa94aa0b88c0eca64 100644
--- a/webkit/fileapi/file_writer_delegate.h
+++ b/webkit/fileapi/file_writer_delegate.h
@@ -8,8 +8,8 @@
#include "base/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
-#include "base/message_loop_proxy.h"
#include "base/platform_file.h"
+#include "base/task_runner.h"
#include "base/time.h"
#include "net/base/file_stream.h"
#include "net/base/io_buffer.h"
@@ -28,7 +28,7 @@ class FileWriterDelegate : public net::URLRequest::Delegate {
FileSystemOperation* write_operation,
const FileSystemPath& path,
int64 offset,
- scoped_refptr<base::MessageLoopProxy> proxy);
+ base::TaskRunner* task_runner);
virtual ~FileWriterDelegate();
void Start(base::PlatformFile file,
@@ -71,7 +71,7 @@ class FileWriterDelegate : public net::URLRequest::Delegate {
FileSystemPath path_;
int64 size_;
int64 offset_;
- scoped_refptr<base::MessageLoopProxy> proxy_;
+ scoped_refptr<base::TaskRunner> task_runner_;
base::Time last_progress_event_time_;
int bytes_written_backlog_;
int bytes_written_;

Powered by Google App Engine
This is Rietveld 408576698