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

Issue 1080073004: PlzNavigate: move ownership of the NavigationRequest to the FrameTreeNode (Closed)

Created:
5 years, 8 months ago by clamy
Modified:
5 years, 8 months ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, creis+watch_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: move ownership of the NavigationRequest to the FrameTreeNode This CL moves the ownership of NavigationRequests from a map in NavigatorImpl to the FrameTreeNode. This ensures that NavigationRequests are unique per FrameTreeNode and are also properly deleted on destruction of the FrameTreeNode. It also makes it easier to have PlzNavigate adapt to the refactoring of DidStart/StopLoading happening in https://codereview.chromium.org/1080143003/. BUG=439423 Committed: https://crrev.com/dcb434c11019afedcd5e45820e724b8ad9e6d396 Cr-Commit-Position: refs/heads/master@{#325498}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Rebase #

Patch Set 3 : Addressed comments #

Total comments: 6

Patch Set 4 : Addressed comments #

Patch Set 5 : Fixed compilation error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -109 lines) Patch
M content/browser/frame_host/frame_tree_node.h View 1 2 3 3 chunks +20 lines, -0 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 3 3 chunks +24 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 chunks +4 lines, -7 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 2 3 2 chunks +0 lines, -10 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 8 chunks +12 lines, -43 lines 0 comments Download
M content/browser/frame_host/navigator_impl_unittest.cc View 34 chunks +33 lines, -42 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
clamy
@nasko, fdgans: PTAL @carlosk: FYI This moves the NavigationRequest to the FrameTreeNode. I know in ...
5 years, 8 months ago (2015-04-15 11:49:53 UTC) #2
Fabrice (no longer in Chrome)
Thanks! Overall, this looks much cleaner. Couple of comments for now. https://codereview.chromium.org/1080073004/diff/1/content/browser/frame_host/frame_tree_node.h File content/browser/frame_host/frame_tree_node.h (right): ...
5 years, 8 months ago (2015-04-15 12:44:50 UTC) #3
nasko
I agree with Fabrice that this looks cleaner. Thanks for putting this CL together! Mostly ...
5 years, 8 months ago (2015-04-15 20:36:04 UTC) #4
clamy
Thanks! https://codereview.chromium.org/1080073004/diff/1/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/1080073004/diff/1/content/browser/frame_host/frame_tree_node.cc#newcode188 content/browser/frame_host/frame_tree_node.cc:188: // TODO(clamy): perform the StopLoading logic. On 2015/04/15 ...
5 years, 8 months ago (2015-04-16 12:12:31 UTC) #5
Fabrice (no longer in Chrome)
One final nit :) lgtm https://codereview.chromium.org/1080073004/diff/40001/content/browser/frame_host/frame_tree_node.h File content/browser/frame_host/frame_tree_node.h (right): https://codereview.chromium.org/1080073004/diff/40001/content/browser/frame_host/frame_tree_node.h#newcode156 content/browser/frame_host/frame_tree_node.h:156: // Reset the current ...
5 years, 8 months ago (2015-04-16 14:01:27 UTC) #6
nasko
LGTM with a couple of nits. https://codereview.chromium.org/1080073004/diff/40001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/1080073004/diff/40001/content/browser/frame_host/frame_tree_node.cc#newcode186 content/browser/frame_host/frame_tree_node.cc:186: // Upon commit ...
5 years, 8 months ago (2015-04-16 16:02:34 UTC) #7
clamy
Thanks! https://codereview.chromium.org/1080073004/diff/40001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/1080073004/diff/40001/content/browser/frame_host/frame_tree_node.cc#newcode186 content/browser/frame_host/frame_tree_node.cc:186: // Upon commit the current navigation request will ...
5 years, 8 months ago (2015-04-16 16:14:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1080073004/60001
5 years, 8 months ago (2015-04-16 16:23:06 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/62106)
5 years, 8 months ago (2015-04-16 16:39:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1080073004/80001
5 years, 8 months ago (2015-04-16 18:32:32 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-04-16 19:29:24 UTC) #17
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/dcb434c11019afedcd5e45820e724b8ad9e6d396 Cr-Commit-Position: refs/heads/master@{#325498}
5 years, 8 months ago (2015-04-16 19:30:20 UTC) #18
johnme
5 years, 8 months ago (2015-04-17 15:56:58 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/1092973002/ by johnme@chromium.org.

The reason for reverting is: Tentative revert to try to fix
fast/dom/Window/new-window-opener.html on Mac, which has been crashing
consistently since
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.9/builds/....

Powered by Google App Engine
This is Rietveld 408576698