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

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

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/test/fake_download_item.h ('k') | content/public/test/mock_download_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/fake_download_item.cc
diff --git a/content/public/test/fake_download_item.cc b/content/public/test/fake_download_item.cc
index 7e9fe03d9a1060c56acb05f0eddc043e8d5cb93f..ccc21880d45faf3e3d4d92696a145d1057d9b824 100644
--- a/content/public/test/fake_download_item.cc
+++ b/content/public/test/fake_download_item.cc
@@ -5,6 +5,7 @@
#include "content/public/test/fake_download_item.h"
#include "base/bind.h"
+#include "net/http/http_response_headers.h"
namespace content {
@@ -126,6 +127,16 @@ DownloadItem::DownloadState FakeDownloadItem::GetState() const {
return download_state_;
}
+void FakeDownloadItem::SetResponseHeaders(
+ scoped_refptr<const net::HttpResponseHeaders> response_headers) {
+ response_headers_ = response_headers;
+}
+
+const scoped_refptr<const net::HttpResponseHeaders>&
+FakeDownloadItem::GetResponseHeaders() const {
+ return response_headers_;
+}
+
void FakeDownloadItem::SetMimeType(const std::string& mime_type) {
mime_type_ = mime_type;
}
« no previous file with comments | « content/public/test/fake_download_item.h ('k') | content/public/test/mock_download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698