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

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: 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/MHTMLArchive.cpp
diff --git a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
index ede6666b1c5d84fa3772d10f622754a4be8bff9a..cea3bd3f12740be7ea90177d09d42de949fc68c7 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();
-}
-
ArchiveResource* MHTMLArchive::mainResource() const
{
return m_mainResource.get();
« no previous file with comments | « third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h ('k') | third_party/WebKit/Source/web/WebPageSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698