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

Unified Diff: content/browser/download/download_create_info.h

Issue 2809953002: Make the download's response headers available in the DownloadItem (Closed)
Patch Set: 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
Index: content/browser/download/download_create_info.h
diff --git a/content/browser/download/download_create_info.h b/content/browser/download/download_create_info.h
index 59c51ca618cba2026948ea4fb061e66851739b0d..c0ac5b4f68b9692f31c57e500218e256d601c57d 100644
--- a/content/browser/download/download_create_info.h
+++ b/content/browser/download/download_create_info.h
@@ -78,6 +78,10 @@ struct CONTENT_EXPORT DownloadCreateInfo {
base::Optional<ui::PageTransition> transition_type;
+ // The HTTP response code. This is 0 when the response has not yet been
+ // received or if the response code text could not be parsed.
+ int response_code;
+
// The remote IP address where the download was fetched from. Copied from
// UrlRequest::GetSocketAddress().
std::string remote_address;
« no previous file with comments | « no previous file | content/browser/download/download_create_info.cc » ('j') | content/browser/download/download_item_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698