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

Unified Diff: components/image_fetcher/core/image_data_fetcher.cc

Issue 2793983002: [ImageFetcher] Return http response headers (Closed)
Patch Set: Compare headers as well Created 3 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 | « no previous file | components/image_fetcher/core/image_data_fetcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/image_fetcher/core/image_data_fetcher.cc
diff --git a/components/image_fetcher/core/image_data_fetcher.cc b/components/image_fetcher/core/image_data_fetcher.cc
index 56078f7005509f873f7691bafa27b5da8432993d..dd88027b81b379d97b2f050ed9dca0bdc9193d9e 100644
--- a/components/image_fetcher/core/image_data_fetcher.cc
+++ b/components/image_fetcher/core/image_data_fetcher.cc
@@ -89,6 +89,7 @@ void ImageDataFetcher::OnURLFetchComplete(const net::URLFetcher* source) {
RequestMetadata metadata;
if (success && source->GetResponseHeaders()) {
+ metadata.http_response_headers = source->GetResponseHeaders();
source->GetResponseHeaders()->GetMimeType(&metadata.mime_type);
metadata.http_response_code = source->GetResponseHeaders()->response_code();
success &= (metadata.http_response_code == net::HTTP_OK);
« no previous file with comments | « no previous file | components/image_fetcher/core/image_data_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698