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

Unified Diff: content/child/resource_dispatcher.cc

Issue 2466263008: Revert of [Mojo-Loading] Dispatch body data after response is received (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | content/child/url_response_body_consumer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index 8ddfa8b7bc459a82fe563be3ef50573b2e0629d8..ec4cb56c3551c57b5467e08dfac4f6cec6c5cfec 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -89,9 +89,6 @@
}
void OnReceiveResponse(const ResourceResponseHead& response_head) override {
- has_received_response_ = true;
- if (body_consumer_)
- body_consumer_->Start(task_runner_.get());
resource_dispatcher_->OnMessageReceived(
ResourceMsg_ReceivedResponse(request_id_, response_head));
}
@@ -101,8 +98,6 @@
DCHECK(!body_consumer_);
body_consumer_ = new URLResponseBodyConsumer(
request_id_, resource_dispatcher_, std::move(body), task_runner_);
- if (has_received_response_)
- body_consumer_->Start(task_runner_.get());
}
void OnComplete(const ResourceRequestCompletionStatus& status) override {
@@ -122,7 +117,6 @@
mojo::Binding<mojom::URLLoaderClient> binding_;
scoped_refptr<URLResponseBodyConsumer> body_consumer_;
const int request_id_;
- bool has_received_response_ = false;
ResourceDispatcher* const resource_dispatcher_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
};
« no previous file with comments | « no previous file | content/child/url_response_body_consumer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698