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

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

Issue 1436683002: Making PageSerializer operate on single frames only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mhtml-removing-unused-code
Patch Set: 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/MHTMLArchive.cpp
diff --git a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
index 1fc9d098c705f61c0c7c0ff4a15757827586c93d..892fa6883c7b51e9612798778f136c261b1cf8d9 100644
--- a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
+++ b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
@@ -227,23 +227,6 @@ void MHTMLArchive::generateMHTMLFooter(
outputBuffer.append(asciiString.data(), asciiString.length());
}
-PassRefPtr<SharedBuffer> MHTMLArchive::generateMHTMLData(
- const Vector<SerializedResource>& resources,
- EncodingPolicy encodingPolicy,
- const String& title, const String& mimeType)
-{
- String boundary = MHTMLArchive::generateMHTMLBoundary();
-
- RefPtr<SharedBuffer> mhtmlData = SharedBuffer::create();
- MHTMLArchive::generateMHTMLHeader(boundary, title, mimeType, *mhtmlData);
- for (const auto& resource : resources) {
- MHTMLArchive::generateMHTMLPart(
- boundary, encodingPolicy, resource, *mhtmlData);
- }
- MHTMLArchive::generateMHTMLFooter(boundary, *mhtmlData);
- return mhtmlData.release();
-}
-
#if !ENABLE(OILPAN)
void MHTMLArchive::clearAllSubframeArchives()
{

Powered by Google App Engine
This is Rietveld 408576698