DescriptionSingle referrer for all savable resources from a given frame.
When gathering savable resources from the whole page, each resource
could have come from a different frame and therefore could have had a
different referrer associated with it - back then it made sense to send
a vector of referrers (potentially a different one for each savable
resource). Now (after crrev.com/1308113008) we gather savable resources
per frame and therefore can simplify the IPCs and send only a single
referrer for the whole frame.
Note that for the main frame, the browser already knows the referrer ...
render_frame_host_impl->frame_tree_node()
->navigator()
->GetController()
->GetLastCommittedEntry()
->GetReferrer()
... but this CL keeps communicating the referrer over IPC, because 1) it
covers all the frames and 2) the renderer seems like a simpler, single,
race-free, more authoratitative source of the referrer information.
This CL is to some extent a reply to a CR feedback at
crrev.com/1413103003/#msg6 that pointed out general undesirability of
sending over IPC a struct-of-vectors (as opposed to a
vector-of-structs).
This CL improves upon crrev.com/10387090 which introduced sending of
referrer information during save-page-as operation, but initially kept
sending only default, rather than actual referrers.
BUG=526786
Committed: https://crrev.com/f05b1f759c5c29e8a2cf22690477d1572a1d5fc1
Cr-Commit-Position: refs/heads/master@{#356990}
Patch Set 1 #Patch Set 2 : Rebasing... #
Messages
Total messages: 19 (6 generated)
|