DescriptionSimplify WebNavigationApi by using RenderFrameHost internally.
WebNavigationApi formerly passed around a lot of redundant state, but
now it just uses RenderFrameHost. Code that needs to know the routing
ID, parent, etc can just derive it from the RenderFrameHost.
Since WebNavigationApi is storing raw pointers to RenderFrameHost, it
also observers RFH deletions and removes them as needed. This fixes
some use-after-frees when other observers are incorrectly causing the
RenderFrameHost to be destroyed.
BUG=391058
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283336
Patch Set 1 #Patch Set 2 : it works! #Patch Set 3 : Fix tests too #Patch Set 4 : Revert WebRequest changes mostly since they run on the IO thread #Patch Set 5 : Revert formatting too #
Total comments: 22
Patch Set 6 : Address review comments #Patch Set 7 : Remove troublesome DCHECKs #Messages
Total messages: 9 (0 generated)
|