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

Unified Diff: storage/browser/blob/blob_url_request_job.cc

Issue 1120553002: [storage] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Nits Created 5 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
« no previous file with comments | « storage/browser/blob/blob_url_request_job.h ('k') | storage/browser/blob/blob_url_request_job_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/blob_url_request_job.cc
diff --git a/storage/browser/blob/blob_url_request_job.cc b/storage/browser/blob/blob_url_request_job.cc
index d94fa0ba46a67f10bc1e49f6ee1caa06f6b9e530..436270655ed6f77660c286f56a7d7411bbe52ad3 100644
--- a/storage/browser/blob/blob_url_request_job.cc
+++ b/storage/browser/blob/blob_url_request_job.cc
@@ -15,7 +15,6 @@
#include "base/files/file_util_proxy.h"
#include "base/format_macros.h"
#include "base/message_loop/message_loop.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/numerics/safe_conversions.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
@@ -57,11 +56,11 @@ BlobURLRequestJob::BlobURLRequestJob(
net::NetworkDelegate* network_delegate,
scoped_ptr<BlobDataSnapshot> blob_data,
storage::FileSystemContext* file_system_context,
- base::MessageLoopProxy* file_thread_proxy)
+ base::SingleThreadTaskRunner* file_task_runner)
: net::URLRequestJob(request, network_delegate),
blob_data_(blob_data.Pass()),
file_system_context_(file_system_context),
- file_thread_proxy_(file_thread_proxy),
+ file_task_runner_(file_task_runner),
total_size_(0),
remaining_bytes_(0),
pending_get_file_info_count_(0),
@@ -72,7 +71,7 @@ BlobURLRequestJob::BlobURLRequestJob(
weak_factory_(this) {
TRACE_EVENT_ASYNC_BEGIN1("Blob", "BlobRequest", this, "uuid",
blob_data_ ? blob_data_->uuid() : "NotFound");
- DCHECK(file_thread_proxy_.get());
+ DCHECK(file_task_runner_.get());
}
void BlobURLRequestJob::Start() {
@@ -596,7 +595,7 @@ void BlobURLRequestJob::CreateFileStreamReader(size_t index,
switch (item.type()) {
case DataElement::TYPE_FILE:
reader = FileStreamReader::CreateForLocalFile(
- file_thread_proxy_.get(),
+ file_task_runner_.get(),
item.path(),
item.offset() + additional_offset,
item.expected_modification_time());
« no previous file with comments | « storage/browser/blob/blob_url_request_job.h ('k') | storage/browser/blob/blob_url_request_job_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698