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

Unified Diff: third_party/WebKit/Source/web/WebFrameSerializer.cpp

Issue 1502563004: Save-Page-As-Complete-Html: Each frame links to a distinct local file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-url-deduping-for-frame-and-adding-save-item-id
Patch Set: Rebasing... Created 4 years, 11 months 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | third_party/WebKit/Source/web/WebFrameSerializerImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebFrameSerializer.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameSerializer.cpp b/third_party/WebKit/Source/web/WebFrameSerializer.cpp
index 9dbe8c6740f9580d3343a889745c2381aadffa0d..7b1b13a1f0e4c210a9737b8ac865e510c9f5abd9 100644
--- a/third_party/WebKit/Source/web/WebFrameSerializer.cpp
+++ b/third_party/WebKit/Source/web/WebFrameSerializer.cpp
@@ -107,7 +107,7 @@ bool MHTMLFrameSerializerDelegate::rewriteLink(
if (!frame)
return false;
- WebString contentID = m_webDelegate.getContentID(*WebFrame::fromFrame(frame));
+ WebString contentID = m_webDelegate.getContentID(WebFrame::fromFrame(frame));
if (contentID.isNull())
return false;
@@ -171,7 +171,7 @@ WebData WebFrameSerializer::generateMHTMLParts(
serializer.serializeFrame(*frame);
// Get Content-ID for the frame being serialized.
- String frameContentID = webDelegate->getContentID(*webFrame);
+ String frameContentID = webDelegate->getContentID(webFrame);
// Encode serializer's output as MHTML.
RefPtr<SharedBuffer> output = SharedBuffer::create();
@@ -199,9 +199,9 @@ WebData WebFrameSerializer::generateMHTMLFooter(const WebString& boundary)
bool WebFrameSerializer::serialize(
WebLocalFrame* frame,
WebFrameSerializerClient* client,
- const WebVector<std::pair<WebURL, WebString>>& urlsToLocalPaths)
+ WebFrameSerializer::LinkRewritingDelegate* delegate)
{
- WebFrameSerializerImpl serializerImpl(frame, client, urlsToLocalPaths);
+ WebFrameSerializerImpl serializerImpl(frame, client, delegate);
return serializerImpl.serialize();
}
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | third_party/WebKit/Source/web/WebFrameSerializerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698