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

Unified Diff: third_party/WebKit/Source/platform/mhtml/MHTMLParser.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: Rebasing... Created 5 years, 1 month 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/MHTMLParser.h
diff --git a/third_party/WebKit/Source/platform/mhtml/MHTMLParser.h b/third_party/WebKit/Source/platform/mhtml/MHTMLParser.h
index 3764321210fcc914f7904bf7a585866419b6f976..f4689b4b31fd024632e32bfeead2eebf652cdd2b 100644
--- a/third_party/WebKit/Source/platform/mhtml/MHTMLParser.h
+++ b/third_party/WebKit/Source/platform/mhtml/MHTMLParser.h
@@ -33,6 +33,7 @@
#include "platform/SharedBufferChunkReader.h"
#include "platform/heap/Handle.h"
+#include "platform/weborigin/KURL.h"
#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
@@ -60,6 +61,14 @@ public:
size_t subResourceCount() const;
ArchiveResource* subResourceAt(size_t) const;
+ // Translates |contentIDFromMimeHeader| (of the form "<foo@bar.com>")
+ // into a cid-scheme URI (of the form "cid:foo@bar.com").
+ //
+ // Returns KURL() - an invalid URL - if contentID is invalid.
+ //
+ // See rfc2557 - section 8.3 - "Use of the Content-ID header and CID URLs".
+ static KURL convertContentIDToURI(const String& contentID);
+
private:
PassRefPtrWillBeRawPtr<MHTMLArchive> parseArchiveWithHeader(MIMEHeader*);
PassRefPtrWillBeRawPtr<ArchiveResource> parseNextPart(const MIMEHeader&, const String& endOfPartBoundary, const String& endOfDocumentBoundary, bool& endOfArchiveReached);

Powered by Google App Engine
This is Rietveld 408576698