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

Unified Diff: content/browser/download/mhtml_extra_parts_impl.cc

Issue 2827503002: Add extra headers argument so we don't pass headers in the body. (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/mhtml_extra_parts_impl.cc
diff --git a/content/browser/download/mhtml_extra_parts_impl.cc b/content/browser/download/mhtml_extra_parts_impl.cc
index 02ca159d0a286e9e6d22eb76f88e4dd0923261a4..c9614772009a631240b9a0b445ed7b05031ec264 100644
--- a/content/browser/download/mhtml_extra_parts_impl.cc
+++ b/content/browser/download/mhtml_extra_parts_impl.cc
@@ -11,6 +11,13 @@ const int kMHTMLExtraPartsKey = 0;
namespace content {
+MHTMLExtraDataPart::MHTMLExtraDataPart() = default;
+
+MHTMLExtraDataPart::~MHTMLExtraDataPart() = default;
+
+MHTMLExtraDataPart::MHTMLExtraDataPart(const MHTMLExtraDataPart& other) =
+ default;
+
MHTMLExtraPartsImpl::MHTMLExtraPartsImpl() = default;
MHTMLExtraPartsImpl::~MHTMLExtraPartsImpl() = default;
@@ -37,10 +44,12 @@ int64_t MHTMLExtraPartsImpl::size() {
void MHTMLExtraPartsImpl::AddExtraMHTMLPart(const std::string& content_type,
const std::string& content_location,
+ const std::string& extra_headers,
const std::string& body) {
MHTMLExtraDataPart part;
part.content_type = content_type;
part.content_location = content_location;
+ part.extra_headers = extra_headers;
part.body = body;
// Add this part to the list of parts to be saved out when the file is
« no previous file with comments | « content/browser/download/mhtml_extra_parts_impl.h ('k') | content/browser/download/mhtml_generation_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698