DescriptionSave-Page-As-Complete-Html: Each frame links to a distinct local file.
Previous CL (crrev.com/1484093002) made it possible to save contents of
all frames - even if some of them have the same URI, they still get
saved into separate files / SaveItems. This CL makes sure that we
rewrite links in a html document, based on frame identity if possible
(rather than always doing the rewriting based on the uri):
- SaveItem now stores a frame_tree_node_id that can be potentially used
(if the SaveItem is for a frame rather than for a savable resource) as
a key in the map into the local paths.
- WebFrameSerializerImpl now rewrites link uris based on 2 maps
(url -> local path map as well as frame -> local path map).
BUG=106364, 106158, 538188
Committed: https://crrev.com/777a7dd63a55b297f0c9543f1892cecb54505a1f
Cr-Commit-Position: refs/heads/master@{#371349}
Patch Set 1 #Patch Set 2 : Rebasing... #
Total comments: 2
Patch Set 3 : Introduced WebPageSerializer::LinkRewritingDelegate [also rebasing :-( ]. #Patch Set 4 : Rebased + cleaned-up refactoring leftovers from previous patchset. #Patch Set 5 : Rebasing... (on top of Page->FrameSerializer rename). #Patch Set 6 : Rebasing... #Patch Set 7 : Fixing building of dom_serializer_browsertest.cc :-/ #
Total comments: 6
Patch Set 8 : Method signature changes: rewriteFrameSource + s/const WebFrame&/WebFrame*/ #
Total comments: 8
Patch Set 9 : Addressed feedback from Randy (and apparently accidentally rebased as well...). #
Total comments: 4
Patch Set 10 : Addressed CR feedback from Nasko. #Patch Set 11 : Rebasing... #Messages
Total messages: 37 (15 generated)
|