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

Unified Diff: third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h

Issue 1441553002: Generating CIDs in Blink during MHTML serialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mhtml-per-frame-page-serializer-only
Patch Set: Using references for out parameters in Blink. Created 5 years 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: third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h
diff --git a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h
index cb8013a8323f196f799922e5cfc6f76729faea3d..ee7f3a948308b9f3c251cca69d7a9565c57a59c2 100644
--- a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h
+++ b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h
@@ -77,8 +77,12 @@ public:
// Same |boundary| needs to used for all generateMHTMLHeader and
// generateMHTMLPart and generateMHTMLFooter calls that belong to the same
// MHTML document (see also generateMHTMLBoundary method).
+ //
+ // If |contentID| is non-empty, then it will be used as a Content-ID header.
+ // See rfc2557 - section 8.3 - "Use of the Content-ID header and CID URLs".
static void generateMHTMLPart(
- const String& boundary, EncodingPolicy, const SerializedResource&,
+ const String& boundary, const String& contentID,
+ EncodingPolicy, const SerializedResource&,
SharedBuffer& outputBuffer);
// Generates an MHTML footer and appends it to |outputBuffer|.

Powered by Google App Engine
This is Rietveld 408576698