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

Unified Diff: webkit/blob/local_file_reader.cc

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, 7 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/blob/local_file_reader.h ('k') | webkit/chromeos/fileapi/cros_mount_point_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/blob/local_file_reader.cc
diff --git a/webkit/blob/local_file_reader.cc b/webkit/blob/local_file_reader.cc
index 8b5fb050137ffa87c8907d13ecb834489665e0ff..7de2686c4e68871000f4931e1b59a3a32ee7f034 100644
--- a/webkit/blob/local_file_reader.cc
+++ b/webkit/blob/local_file_reader.cc
@@ -8,8 +8,8 @@
#include "base/file_util_proxy.h"
#include "base/location.h"
#include "base/logging.h"
-#include "base/message_loop_proxy.h"
#include "base/platform_file.h"
+#include "base/task_runner.h"
#include "net/base/file_stream.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
@@ -48,11 +48,11 @@ int LocalFileReader::PlatformFileErrorToNetError(
}
LocalFileReader::LocalFileReader(
- base::MessageLoopProxy* file_thread_proxy,
+ base::TaskRunner* task_runner,
const FilePath& file_path,
int64 initial_offset,
const base::Time& expected_modification_time)
- : file_thread_proxy_(file_thread_proxy),
+ : task_runner_(task_runner),
file_path_(file_path),
initial_offset_(initial_offset),
expected_modification_time_(expected_modification_time),
@@ -74,7 +74,7 @@ int LocalFileReader::Read(net::IOBuffer* buf, int buf_len,
int LocalFileReader::GetLength(const net::Int64CompletionCallback& callback) {
const bool posted = base::FileUtilProxy::GetFileInfo(
- file_thread_proxy_, file_path_,
+ task_runner_, file_path_,
base::Bind(&LocalFileReader::DidGetFileInfoForGetLength,
weak_factory_.GetWeakPtr(), callback));
DCHECK(posted);
« no previous file with comments | « webkit/blob/local_file_reader.h ('k') | webkit/chromeos/fileapi/cros_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698