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

Issue 379143002: PlzNavigate: implement RequestNavigation in the no live renderer case (Closed)

Created:
6 years, 5 months ago by clamy
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, miu+watch_chromium.org, carlosk
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: implement RequestNavigation in the no live renderer case This CL introduces the RenderFrameHostManager::RequestNavigation method, and implements the case where there is no live renderer. In that case, navigation requests are forwarded to the ResourceDispatcherHost on the IO thread via a call to RenderFrameHostManager::BeginNavigation. BUG=376006, 376082 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290570

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 10

Patch Set 3 : #

Total comments: 33

Patch Set 4 : #

Patch Set 5 : Added a preliminary implementation of CommitNavigation to clarify the lifetime of rfhs #

Total comments: 28

Patch Set 6 : Addressed Nasko's comments #

Total comments: 7

Patch Set 7 : Addressed Nasko's comments + added missing file #

Total comments: 4

Patch Set 8 : Addressed Nasko's comments #

Total comments: 27

Patch Set 9 : Addressed Charlie's comments #

Total comments: 33

Patch Set 10 : Addressed Charlie's comments #

Total comments: 5

Patch Set 11 : Rebase #

Patch Set 12 : Removed speculative rfh + no pending_navigation_entry dependency #

Total comments: 40

Patch Set 13 : Addressed Charlie's comments #

Total comments: 16

Patch Set 14 : Rebase + addressed comments #

Patch Set 15 : Rebase on top of issue 471603002 #

Total comments: 4

Patch Set 16 : #

Patch Set 17 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+468 lines, -142 lines) Patch
A content/browser/frame_host/navigation_before_commit_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +42 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +8 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +16 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +73 lines, -43 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +42 lines, -5 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +188 lines, -70 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +83 lines, -12 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -4 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 60 (0 generated)
clamy
@ nasko, ppi: PTAL. This is patch is dependent on the previous one (https://chromiumcodereview.appspot.com/367653002/). With ...
6 years, 5 months ago (2014-07-10 11:31:41 UTC) #1
clamy
@ nasko, ppi: friendly ping now that the previous patch has landed :) https://chromiumcodereview.appspot.com/379143002/diff/20001/content/browser/frame_host/navigation_entry_impl.h File ...
6 years, 5 months ago (2014-07-16 12:13:49 UTC) #2
ppi
Thanks, please find a few comments below. https://codereview.chromium.org/379143002/diff/20001/content/browser/frame_host/navigation_entry_impl.h File content/browser/frame_host/navigation_entry_impl.h (right): https://codereview.chromium.org/379143002/diff/20001/content/browser/frame_host/navigation_entry_impl.h#newcode227 content/browser/frame_host/navigation_entry_impl.h:227: void MakeNavigateParams(const ...
6 years, 5 months ago (2014-07-16 14:28:09 UTC) #3
clamy
Thanks! https://chromiumcodereview.appspot.com/379143002/diff/20001/content/browser/frame_host/navigation_entry_impl.h File content/browser/frame_host/navigation_entry_impl.h (right): https://chromiumcodereview.appspot.com/379143002/diff/20001/content/browser/frame_host/navigation_entry_impl.h#newcode227 content/browser/frame_host/navigation_entry_impl.h:227: void MakeNavigateParams(const NavigationControllerImpl& controller, On 2014/07/16 14:28:09, ppi ...
6 years, 5 months ago (2014-07-16 15:44:54 UTC) #4
ppi
https://chromiumcodereview.appspot.com/379143002/diff/20001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://chromiumcodereview.appspot.com/379143002/diff/20001/content/browser/frame_host/render_frame_host_manager.cc#newcode243 content/browser/frame_host/render_frame_host_manager.cc:243: if (current_instance != new_instance) { On 2014/07/16 15:44:53, clamy ...
6 years, 5 months ago (2014-07-16 16:00:01 UTC) #5
nasko
I have one concern about the current state of the CL. It isn't clear to ...
6 years, 5 months ago (2014-07-17 12:05:09 UTC) #6
clamy
Thanks! So the current state of the patch is that we create a speculative_render_frame_host_ if ...
6 years, 5 months ago (2014-07-17 13:07:54 UTC) #7
nasko
I didn't see an updated version of the patch with the few things you marked ...
6 years, 5 months ago (2014-07-21 13:02:05 UTC) #8
clamy
Sorry, I indeed forgot to upload the new patch set. I think I will fold ...
6 years, 5 months ago (2014-07-21 13:28:17 UTC) #9
clamy
@nasko: PTAL. This new version of the patch has an implementation of CommitNavigation which should ...
6 years, 5 months ago (2014-07-22 17:07:55 UTC) #10
nasko
A few more comments. https://chromiumcodereview.appspot.com/379143002/diff/80001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://chromiumcodereview.appspot.com/379143002/diff/80001/content/browser/frame_host/render_frame_host_impl.cc#newcode857 content/browser/frame_host/render_frame_host_impl.cc:857: if (CommandLine::ForCurrentProcess()->HasSwitch( Is OnBeginNavigation expected ...
6 years, 5 months ago (2014-07-23 14:15:46 UTC) #11
clamy
Thanks! https://chromiumcodereview.appspot.com/379143002/diff/80001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://chromiumcodereview.appspot.com/379143002/diff/80001/content/browser/frame_host/render_frame_host_impl.cc#newcode857 content/browser/frame_host/render_frame_host_impl.cc:857: if (CommandLine::ForCurrentProcess()->HasSwitch( On 2014/07/23 14:15:45, nasko (in Munich) ...
6 years, 5 months ago (2014-07-23 14:56:11 UTC) #12
nasko
Mostly there. I see there are compile errors for missing header. Is it coming from ...
6 years, 5 months ago (2014-07-24 09:55:47 UTC) #13
clamy
The compilation error was due to me forgetting to add a new file to the ...
6 years, 5 months ago (2014-07-24 11:38:06 UTC) #14
nasko
LGTM https://chromiumcodereview.appspot.com/379143002/diff/100001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://chromiumcodereview.appspot.com/379143002/diff/100001/content/browser/frame_host/render_frame_host_manager.cc#newcode611 content/browser/frame_host/render_frame_host_manager.cc:611: InitRenderFrameHostsBeforeNavigation(dest_render_frame_host); On 2014/07/24 11:38:05, clamy wrote: > On ...
6 years, 5 months ago (2014-07-24 12:03:58 UTC) #15
clamy
@nasko: Thanks for the review! @creis: PTAL at the changes in content. https://chromiumcodereview.appspot.com/379143002/diff/120001/content/browser/frame_host/navigation_commit_info.h File content/browser/frame_host/navigation_commit_info.h ...
6 years, 5 months ago (2014-07-24 12:24:50 UTC) #16
clamy
@ creis: friendly ping :). @ davidben: FYI. This is the CL we talked about ...
6 years, 4 months ago (2014-07-29 12:05:50 UTC) #17
Charlie Reis
On 2014/07/29 12:05:50, clamy wrote: > @ creis: friendly ping :). Ah, sorry! I missed ...
6 years, 4 months ago (2014-07-29 17:46:57 UTC) #18
clamy
Thanks! The labeling should be clearer by now. https://chromiumcodereview.appspot.com/379143002/diff/140001/content/browser/frame_host/navigation_commit_info.h File content/browser/frame_host/navigation_commit_info.h (right): https://chromiumcodereview.appspot.com/379143002/diff/140001/content/browser/frame_host/navigation_commit_info.h#newcode17 content/browser/frame_host/navigation_commit_info.h:17: // ...
6 years, 4 months ago (2014-07-30 13:10:25 UTC) #19
Charlie Reis
Thanks for the updates. I do think it's easier to read the code this way, ...
6 years, 4 months ago (2014-07-30 23:37:33 UTC) #20
clamy
Thanks for the precisions. There is a design doc with a timeline here: https://docs.google.com/document/d/1cSW8fpJIUnibQKU8TMwLE5VxYZPh4u4LNu_wtkok8UE/edit?usp=sharing. Our ...
6 years, 4 months ago (2014-08-05 11:52:45 UTC) #21
Charlie Reis
Thanks-- the design doc helps. I feel like there's a lot of design-level discussions we ...
6 years, 4 months ago (2014-08-05 23:59:52 UTC) #22
clamy
Here is a new version of the patch, which removes the dependency on NavigationControllerImpl::pending_entry_ as ...
6 years, 4 months ago (2014-08-08 12:02:46 UTC) #23
Charlie Reis
Great! I found this easier to follow, which might just be from reading it enough ...
6 years, 4 months ago (2014-08-08 20:25:29 UTC) #24
clamy
Thanks! I think the issue of the NavigationEntryImpl is still not clear. We need it ...
6 years, 4 months ago (2014-08-12 12:13:16 UTC) #25
Charlie Reis
On 2014/08/12 12:13:16, clamy wrote: > Thanks! I think the issue of the NavigationEntryImpl is ...
6 years, 4 months ago (2014-08-12 19:04:50 UTC) #26
nasko
Some drive-by nits. https://chromiumcodereview.appspot.com/379143002/diff/260001/content/browser/frame_host/navigator_impl.h File content/browser/frame_host/navigator_impl.h (right): https://chromiumcodereview.appspot.com/379143002/diff/260001/content/browser/frame_host/navigator_impl.h#newcode78 content/browser/frame_host/navigator_impl.h:78: nit: no new line needed https://chromiumcodereview.appspot.com/379143002/diff/260001/content/browser/frame_host/render_frame_host_manager.cc ...
6 years, 4 months ago (2014-08-13 00:08:00 UTC) #27
clamy
Right now we are creating a copy of the NavigationEntry that is stored in NavigationRequest ...
6 years, 4 months ago (2014-08-13 13:27:25 UTC) #28
clamy
PTAL at the rebase on top of https://chromiumcodereview.appspot.com/471603002/ (the patch that removes the dependency on ...
6 years, 4 months ago (2014-08-14 16:27:55 UTC) #29
Charlie Reis
Awesome-- that's so much nicer without having to pass otherwise-unneeded NavigationEntries around. LGTM. https://chromiumcodereview.appspot.com/379143002/diff/340001/content/browser/frame_host/render_frame_host_manager.cc File ...
6 years, 4 months ago (2014-08-15 06:13:47 UTC) #30
clamy
Thnaks! https://chromiumcodereview.appspot.com/379143002/diff/340001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://chromiumcodereview.appspot.com/379143002/diff/340001/content/browser/frame_host/render_frame_host_manager.cc#newcode649 content/browser/frame_host/render_frame_host_manager.cc:649: // TODO(clamy): Store the site instance, if the ...
6 years, 4 months ago (2014-08-18 10:02:36 UTC) #31
clamy
The CQ bit was checked by clamy@chromium.org
6 years, 4 months ago (2014-08-18 10:02:46 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/379143002/360001
6 years, 4 months ago (2014-08-18 10:03:00 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-18 11:19:57 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-18 11:50:12 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/6796)
6 years, 4 months ago (2014-08-18 11:50:14 UTC) #36
clamy
The CQ bit was checked by clamy@chromium.org
6 years, 4 months ago (2014-08-18 14:21:29 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/379143002/360001
6 years, 4 months ago (2014-08-18 14:22:29 UTC) #38
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-18 14:26:58 UTC) #39
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-18 15:43:26 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/6824)
6 years, 4 months ago (2014-08-18 15:43:27 UTC) #41
clamy
The CQ bit was checked by clamy@chromium.org
6 years, 4 months ago (2014-08-18 15:46:36 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/379143002/360001
6 years, 4 months ago (2014-08-18 15:47:05 UTC) #43
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-18 15:55:13 UTC) #44
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-18 16:08:37 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/6854)
6 years, 4 months ago (2014-08-18 16:08:39 UTC) #46
clamy
The CQ bit was checked by clamy@chromium.org
6 years, 4 months ago (2014-08-18 17:23:29 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/379143002/360001
6 years, 4 months ago (2014-08-18 17:24:40 UTC) #48
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-18 17:35:36 UTC) #49
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-18 17:43:08 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/6885)
6 years, 4 months ago (2014-08-18 17:43:10 UTC) #51
clamy
The CQ bit was checked by clamy@chromium.org
6 years, 4 months ago (2014-08-19 09:06:48 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/379143002/360001
6 years, 4 months ago (2014-08-19 09:07:52 UTC) #53
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-19 10:16:13 UTC) #54
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-19 10:26:48 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/7188)
6 years, 4 months ago (2014-08-19 10:26:49 UTC) #56
clamy
The CQ bit was checked by clamy@chromium.org
6 years, 4 months ago (2014-08-19 11:24:07 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/379143002/380001
6 years, 4 months ago (2014-08-19 11:25:12 UTC) #58
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel_swarming on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-19 13:02:26 UTC) #59
commit-bot: I haz the power
6 years, 4 months ago (2014-08-19 15:59:15 UTC) #60
Message was sent while issue was closed.
Committed patchset #17 (380001) as 290570

Powered by Google App Engine
This is Rietveld 408576698