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

Unified Diff: content/child/resource_dispatcher.cc

Issue 2561743003: Use associated interface on DownloadedTempFile (Closed)
Patch Set: update LayoutTest/TestExpectations Created 4 years 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: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index f8f9126c4a63ae5fcdb4dfa4bd48e858a5dc4b34..a33e2f841ac11c69633970eac93f87a3587d6bcc 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -92,11 +92,11 @@ class URLLoaderClientImpl final : public mojom::URLLoaderClient {
void OnReceiveResponse(
const ResourceResponseHead& response_head,
- mojom::DownloadedTempFilePtr downloaded_file) override {
+ mojom::DownloadedTempFileAssociatedPtrInfo downloaded_file) override {
has_received_response_ = true;
if (body_consumer_)
body_consumer_->Start(task_runner_.get());
- downloaded_file_ = std::move(downloaded_file);
+ downloaded_file_.Bind(std::move(downloaded_file));
resource_dispatcher_->OnMessageReceived(
ResourceMsg_ReceivedResponse(request_id_, response_head));
}
@@ -140,7 +140,7 @@ class URLLoaderClientImpl final : public mojom::URLLoaderClient {
private:
mojo::AssociatedBinding<mojom::URLLoaderClient> binding_;
scoped_refptr<URLResponseBodyConsumer> body_consumer_;
- mojom::DownloadedTempFilePtr downloaded_file_;
+ mojom::DownloadedTempFileAssociatedPtr downloaded_file_;
const int request_id_;
bool has_received_response_ = false;
ResourceDispatcher* const resource_dispatcher_;

Powered by Google App Engine
This is Rietveld 408576698