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

Unified Diff: content/child/url_loader_client_impl.cc

Issue 2926693002: Make content::ThrottlingURLLoader take a task runner and more efficient. (Closed)
Patch Set: sync & resolve Created 3 years, 6 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 | « content/child/url_loader_client_impl.h ('k') | content/common/throttling_url_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/url_loader_client_impl.cc
diff --git a/content/child/url_loader_client_impl.cc b/content/child/url_loader_client_impl.cc
index 6671134b7ca9032e05ed09aa955d2651cc28cc5b..e49889b3e7b5b30a4f337d2405c92249a639a05a 100644
--- a/content/child/url_loader_client_impl.cc
+++ b/content/child/url_loader_client_impl.cc
@@ -17,8 +17,7 @@ URLLoaderClientImpl::URLLoaderClientImpl(
int request_id,
ResourceDispatcher* resource_dispatcher,
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
- : binding_(this),
- request_id_(request_id),
+ : request_id_(request_id),
resource_dispatcher_(resource_dispatcher),
task_runner_(std::move(task_runner)),
weak_factory_(this) {}
@@ -28,10 +27,6 @@ URLLoaderClientImpl::~URLLoaderClientImpl() {
body_consumer_->Cancel();
}
-void URLLoaderClientImpl::Bind(mojom::URLLoaderClientPtr* client_ptr) {
- binding_.Bind(mojo::MakeRequest(client_ptr), task_runner_);
-}
-
void URLLoaderClientImpl::SetDefersLoading() {
is_deferred_ = true;
if (body_consumer_)
« no previous file with comments | « content/child/url_loader_client_impl.h ('k') | content/common/throttling_url_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698