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

Issue 872473003: PlzNavigate: Remove the RequestNavigation IPC (Closed)

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

Description

PlzNavigate: Remove the RequestNavigation IPC This CL removes the RequestNavigation IPC. Instead, browser-side navigation will now send a BeforeUnload IPC to the renderer if needed and wait for a BeforeUnloadACK to proceed with navigations. BUG=376006 Committed: https://crrev.com/0ab288e2bdc393fb6b037f725ddd95fe4b39e64c Cr-Commit-Position: refs/heads/master@{#314830}

Patch Set 1 #

Total comments: 40

Patch Set 2 : Rebase #

Patch Set 3 : Addressed comments #

Patch Set 4 : Rebase #

Patch Set 5 : Addressed Nasko's comments #

Total comments: 2

Patch Set 6 : Addressed nits + fix compilation error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+552 lines, -434 lines) Patch
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 63 chunks +97 lines, -19 lines 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 3 3 chunks +37 lines, -17 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 chunks +94 lines, -7 lines 0 comments Download
M content/browser/frame_host/navigation_request_info.h View 1 2 3 4 5 1 chunk +19 lines, -11 lines 0 comments Download
M content/browser/frame_host/navigation_request_info.cc View 1 2 3 4 5 1 chunk +14 lines, -6 lines 0 comments Download
M content/browser/frame_host/navigator.h View 1 2 3 2 chunks +16 lines, -7 lines 0 comments Download
M content/browser/frame_host/navigator.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 2 3 4 2 chunks +12 lines, -6 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 9 chunks +77 lines, -129 lines 0 comments Download
M content/browser/frame_host/navigator_impl_unittest.cc View 1 2 5 chunks +5 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 4 chunks +13 lines, -7 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 6 chunks +29 lines, -14 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/loader/navigation_url_loader.h View 1 2 3 4 5 2 chunks +0 lines, -3 lines 0 comments Download
M content/browser/loader/navigation_url_loader.cc View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M content/browser/loader/navigation_url_loader_factory.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl.cc View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl_core.h View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/loader/navigation_url_loader_impl_core.cc View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M content/browser/loader/navigation_url_loader_unittest.cc View 1 2 3 2 chunks +6 lines, -7 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 6 chunks +17 lines, -18 lines 0 comments Download
M content/common/frame_messages.h View 1 2 5 chunks +19 lines, -36 lines 0 comments Download
M content/common/navigation_params.h View 1 2 1 chunk +21 lines, -18 lines 0 comments Download
M content/common/navigation_params.cc View 1 2 1 chunk +12 lines, -13 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 8 chunks +33 lines, -59 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_navigation_url_loader.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M content/test/test_navigation_url_loader.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M content/test/test_navigation_url_loader_factory.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/test/test_navigation_url_loader_factory.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
clamy
@carlosk, davidben, nasko: PTAL @fdegans: FYI As we've been discussing for a while, here is ...
5 years, 11 months ago (2015-01-26 18:03:06 UTC) #2
nasko
This is exciting! I like the simplifications in lots of areas in the code. Just ...
5 years, 10 months ago (2015-02-02 21:17:44 UTC) #3
davidben
https://chromiumcodereview.appspot.com/872473003/diff/1/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://chromiumcodereview.appspot.com/872473003/diff/1/content/browser/frame_host/navigation_request.cc#newcode66 content/browser/frame_host/navigation_request.cc:66: headers.SetHeaderIfMissing("Accept", "*/*"); This is the in the old code ...
5 years, 10 months ago (2015-02-03 02:23:21 UTC) #4
carlosk
Whew! Well... After the first few files the rest was not that demanding... :) https://chromiumcodereview.appspot.com/872473003/diff/1/content/browser/frame_host/navigation_controller_impl_unittest.cc ...
5 years, 10 months ago (2015-02-03 16:06:02 UTC) #5
clamy
Thanks! https://chromiumcodereview.appspot.com/872473003/diff/1/content/browser/frame_host/navigation_controller_impl_unittest.cc File content/browser/frame_host/navigation_controller_impl_unittest.cc (right): https://chromiumcodereview.appspot.com/872473003/diff/1/content/browser/frame_host/navigation_controller_impl_unittest.cc#newcode322 content/browser/frame_host/navigation_controller_impl_unittest.cc:322: main_test_rfh()->PrepareForCommit(urls[0]); On 2015/02/03 16:06:02, carlosk wrote: > As ...
5 years, 10 months ago (2015-02-03 16:17:10 UTC) #6
nasko
LGTM https://chromiumcodereview.appspot.com/872473003/diff/1/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://chromiumcodereview.appspot.com/872473003/diff/1/content/browser/frame_host/navigator_impl.cc#newcode859 content/browser/frame_host/navigator_impl.cc:859: frame_tree_node->current_frame_host()->DispatchBeforeUnload(true); On 2015/02/03 16:17:09, clamy wrote: > On ...
5 years, 10 months ago (2015-02-04 00:14:19 UTC) #7
clamy
Thanks! @davidben: friendly ping :) https://codereview.chromium.org/872473003/diff/1/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/872473003/diff/1/content/browser/frame_host/navigator_impl.cc#newcode859 content/browser/frame_host/navigator_impl.cc:859: frame_tree_node->current_frame_host()->DispatchBeforeUnload(true); On 2015/02/04 00:14:19, ...
5 years, 10 months ago (2015-02-05 15:33:13 UTC) #9
davidben
lgtm https://codereview.chromium.org/872473003/diff/80001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/872473003/diff/80001/content/browser/frame_host/render_frame_host_impl.h#newcode333 content/browser/frame_host/render_frame_host_impl.h:333: // PlzNavigate: this calls happens on all navigations. ...
5 years, 10 months ago (2015-02-05 15:59:49 UTC) #10
clamy
Thanks! https://codereview.chromium.org/872473003/diff/80001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/872473003/diff/80001/content/browser/frame_host/render_frame_host_impl.h#newcode333 content/browser/frame_host/render_frame_host_impl.h:333: // PlzNavigate: this calls happens on all navigations. ...
5 years, 10 months ago (2015-02-05 16:32:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/872473003/100001
5 years, 10 months ago (2015-02-05 16:32:51 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-02-05 17:39:44 UTC) #15
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 17:41:53 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/0ab288e2bdc393fb6b037f725ddd95fe4b39e64c
Cr-Commit-Position: refs/heads/master@{#314830}

Powered by Google App Engine
This is Rietveld 408576698