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

Unified Diff: content/public/browser/download_item.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/public/browser/download_item.h
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
index 0b712396e339b27be422f4dc5891d66036bc72f7..34a4c6c7ff744c231858b0c79e80e44a1bca7ec3 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -245,6 +245,10 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// filename from the download attribute.
virtual std::string GetSuggestedFilename() const = 0;
+ // Returns 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.
+ virtual int GetResponseCode() const = 0;
+
// Content-Disposition header value from HTTP response.
virtual std::string GetContentDisposition() const = 0;

Powered by Google App Engine
This is Rietveld 408576698