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); |