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

Unified Diff: third_party/WebKit/Source/web/WebFrameSerializerImpl.h

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
Index: third_party/WebKit/Source/web/WebFrameSerializerImpl.h
diff --git a/third_party/WebKit/Source/web/WebFrameSerializerImpl.h b/third_party/WebKit/Source/web/WebFrameSerializerImpl.h
index 49eb90592f94ddf59bd57f2c7fe903b563a5ec7f..e948769d7c0380ee62f217d385198a8ce4aee19d 100644
--- a/third_party/WebKit/Source/web/WebFrameSerializerImpl.h
+++ b/third_party/WebKit/Source/web/WebFrameSerializerImpl.h
@@ -74,24 +74,18 @@ public:
// The parameter delegate specifies the pointer of interface
// DomSerializerDelegate provide sink interface which can receive the
// individual chunks of data to be saved.
- // The parameter urlsToLocalPaths contains a mapping between original URLs
- // of saved resources and corresponding local file paths.
WebFrameSerializerImpl(
WebLocalFrame*,
WebFrameSerializerClient*,
- const WebVector<std::pair<WebURL, WebString>>& urlsToLocalPaths);
+ WebFrameSerializer::LinkRewritingDelegate*);
private:
// Specified frame which need to be serialized;
RawPtrWillBeMember<WebLocalFrameImpl> m_specifiedWebLocalFrameImpl;
// Pointer of WebFrameSerializerClient
WebFrameSerializerClient* m_client;
- // This hash map is used to map resource URL of original link to its local
- // file path.
- typedef HashMap<WTF::String, WTF::String> LinkLocalPathMap;
- // local_links_ include all pair of local resource path and corresponding
- // original link.
- LinkLocalPathMap m_localLinks;
+ // Pointer of WebFrameSerializer::LinkRewritingDelegate
+ WebFrameSerializer::LinkRewritingDelegate* m_delegate;
// Data buffer for saving result of serialized DOM data.
StringBuilder m_dataBuffer;
@@ -179,6 +173,13 @@ private:
void buildContentForNode(
Node*,
SerializeDomParam*);
+
+ // Appends attrName="escapedAttrValue" to result.
+ void appendAttribute(
+ StringBuilder& result,
+ bool isHTMLDocument,
+ const String& attrName,
+ const String& attrValue);
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameSerializer.cpp ('k') | third_party/WebKit/Source/web/WebFrameSerializerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698