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

Unified Diff: content/public/test/fake_download_item.h

Issue 2809953002: Make the download's response headers available in the DownloadItem (Closed)
Patch Set: comment 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 | « content/public/browser/download_item.h ('k') | content/public/test/fake_download_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/fake_download_item.h
diff --git a/content/public/test/fake_download_item.h b/content/public/test/fake_download_item.h
index e26f0d8c1872bb0dbaad31ec11aaeed0d268ab47..f2e230572ca0ea2657904ade716c6685139babff 100644
--- a/content/public/test/fake_download_item.h
+++ b/content/public/test/fake_download_item.h
@@ -63,6 +63,11 @@ class FakeDownloadItem : public DownloadItem {
void SetState(const DownloadState& state);
DownloadState GetState() const override;
+ void SetResponseHeaders(
+ scoped_refptr<const net::HttpResponseHeaders> response_headers);
+ const scoped_refptr<const net::HttpResponseHeaders>& GetResponseHeaders()
+ const override;
+
void SetMimeType(const std::string& mime_type);
std::string GetMimeType() const override;
@@ -149,6 +154,7 @@ class FakeDownloadItem : public DownloadItem {
// MAX_DOWNLOAD_STATE is used as the uninitialized state.
DownloadState download_state_ =
DownloadItem::DownloadState::MAX_DOWNLOAD_STATE;
+ scoped_refptr<const net::HttpResponseHeaders> response_headers_;
std::string mime_type_;
GURL original_url_;
DownloadInterruptReason last_reason_ =
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/test/fake_download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698