Index: content/child/resource_dispatcher.cc |
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc |
index e242b5eda9421e57bec96e99eb7c88e344dd1d98..9e382336b67fd97d3204c492878cb4a29678fb25 100644 |
--- a/content/child/resource_dispatcher.cc |
+++ b/content/child/resource_dispatcher.cc |
@@ -90,10 +90,13 @@ class URLLoaderClientImpl final : public mojom::URLLoaderClient { |
body_consumer_->Cancel(); |
} |
- void OnReceiveResponse(const ResourceResponseHead& response_head) override { |
+ void OnReceiveResponse( |
+ const ResourceResponseHead& response_head, |
+ mojom::DownloadedTempFilePtr downloaded_file) override { |
has_received_response_ = true; |
if (body_consumer_) |
body_consumer_->Start(task_runner_.get()); |
+ downloaded_file_ = std::move(downloaded_file); |
resource_dispatcher_->OnMessageReceived( |
ResourceMsg_ReceivedResponse(request_id_, response_head)); |
} |
@@ -137,6 +140,7 @@ class URLLoaderClientImpl final : public mojom::URLLoaderClient { |
private: |
mojo::AssociatedBinding<mojom::URLLoaderClient> binding_; |
scoped_refptr<URLResponseBodyConsumer> body_consumer_; |
+ mojom::DownloadedTempFilePtr downloaded_file_; |
const int request_id_; |
bool has_received_response_ = false; |
ResourceDispatcher* const resource_dispatcher_; |