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

Issue 367653002: Add a FrameHostMsg_BeginNavigation IPC (Closed)

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

Description

Add a FrameHostMsg_BeginNavigation IPC As part of the project PlzNavigate, this CL introduces a new IPC, FrameHostMsg_BeginNavigation that should be sent from the renderer to the browser on renderer-initiated navigation, or in response to a FrameMsg_RequestNavigation (that will be introduced in a later CL) for browser initiated ones. Upon reception of FrameHostMsg_BeginNavigation, the UI thread will forward the relevant information to the IO thread (to the ResourceDispatcherHost). BUG=376014 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283346

Patch Set 1 #

Patch Set 2 : Removed appcache_host_id, service_worker_provider_id and download_to_file parameters #

Total comments: 2

Patch Set 3 : Removed resource_type parameter #

Total comments: 4

Patch Set 4 : Implemented the IPC handler #

Total comments: 5

Patch Set 5 : Added unit test + fixed bug in parent_is_render_frame_computation #

Total comments: 23

Patch Set 6 : Addressed Nasko's comments #

Total comments: 8

Patch Set 7 : Addressed Przemek's comments + fixed compilation error #

Total comments: 20

Patch Set 8 : Addressed David, John and Przemek's comments #

Patch Set 9 : Added a stub for CommitNavigation to clarify lifetime of rfh #

Unified diffs Side-by-side diffs Delta from patch set Stats (+551 lines, -125 lines) Patch
M content/browser/frame_host/navigator.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +64 lines, -42 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 6 7 8 8 chunks +40 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 11 chunks +227 lines, -76 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +187 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 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 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
clamy
@ppi: PTAL
6 years, 5 months ago (2014-07-01 11:59:16 UTC) #1
clamy
@ davidben, nasko: PTAL
6 years, 5 months ago (2014-07-02 09:50:41 UTC) #2
ppi
Thanks! A high-level note - this is not, strictly speaking, needed for the experimental codepath ...
6 years, 5 months ago (2014-07-02 17:28:57 UTC) #3
davidben
lgtm, though you'll need content/ and IPC stamps from nasko anyway. I don't really have ...
6 years, 5 months ago (2014-07-02 21:05:13 UTC) #4
clamy
@ ppi, davidben: thanks! @ ppi: in order for the experimental path to work, we ...
6 years, 5 months ago (2014-07-03 09:41:54 UTC) #5
ppi
Sounds reasonable, thanks for explanations! Lgtm.
6 years, 5 months ago (2014-07-03 09:52:59 UTC) #6
nasko
Including jam@ for explicit visibility that we are starting to commit code for this. In ...
6 years, 5 months ago (2014-07-03 10:26:09 UTC) #7
clamy
On 2014/07/03 10:26:09, nasko wrote: > Including jam@ for explicit visibility that we are starting ...
6 years, 5 months ago (2014-07-03 11:42:58 UTC) #8
clamy
Here is a draft version that sends the info received from the IPC to the ...
6 years, 5 months ago (2014-07-03 15:10:51 UTC) #9
clamy
@ davidben, nasko, ppi: I have added a very basic implementation of the IPC handler, ...
6 years, 5 months ago (2014-07-04 15:07:20 UTC) #10
nasko
A few comments. In general, if we plan to add something later, it needs to ...
6 years, 5 months ago (2014-07-07 11:35:10 UTC) #11
clamy
Thanks for the review! https://chromiumcodereview.appspot.com/367653002/diff/100001/content/browser/frame_host/navigation_request.h File content/browser/frame_host/navigation_request.h (right): https://chromiumcodereview.appspot.com/367653002/diff/100001/content/browser/frame_host/navigation_request.h#newcode20 content/browser/frame_host/navigation_request.h:20: // navigation, please see the ...
6 years, 5 months ago (2014-07-07 13:36:23 UTC) #12
nasko
LGTM
6 years, 5 months ago (2014-07-07 13:49:26 UTC) #13
ppi
Thanks! Some remarks below. https://chromiumcodereview.appspot.com/367653002/diff/120001/content/browser/frame_host/navigation_request_info.h File content/browser/frame_host/navigation_request_info.h (right): https://chromiumcodereview.appspot.com/367653002/diff/120001/content/browser/frame_host/navigation_request_info.h#newcode37 content/browser/frame_host/navigation_request_info.h:37: int referrer_policy; In content we ...
6 years, 5 months ago (2014-07-07 14:10:05 UTC) #14
clamy
Thanks for the review! https://chromiumcodereview.appspot.com/367653002/diff/120001/content/browser/frame_host/navigation_request_info.h File content/browser/frame_host/navigation_request_info.h (right): https://chromiumcodereview.appspot.com/367653002/diff/120001/content/browser/frame_host/navigation_request_info.h#newcode37 content/browser/frame_host/navigation_request_info.h:37: int referrer_policy; On 2014/07/07 14:10:05, ...
6 years, 5 months ago (2014-07-08 14:21:40 UTC) #15
ppi
Lgtm, thanks!
6 years, 5 months ago (2014-07-08 14:29:02 UTC) #16
clamy
@ppi: thanks for the review! @davidben: are you okay with the changes in content/browser/loader? @jam: ...
6 years, 5 months ago (2014-07-09 15:11:19 UTC) #17
davidben
LGTM with some minor comments https://codereview.chromium.org/367653002/diff/160001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/367653002/diff/160001/content/browser/frame_host/navigation_request.cc#newcode34 content/browser/frame_host/navigation_request.cc:34: // it has not ...
6 years, 5 months ago (2014-07-09 15:14:28 UTC) #18
ppi
Thanks, two additional nits on second reading. https://chromiumcodereview.appspot.com/367653002/diff/160001/content/browser/frame_host/render_frame_host_manager.h File content/browser/frame_host/render_frame_host_manager.h (right): https://chromiumcodereview.appspot.com/367653002/diff/160001/content/browser/frame_host/render_frame_host_manager.h#newcode306 content/browser/frame_host/render_frame_host_manager.h:306: void BeginNavigation(const ...
6 years, 5 months ago (2014-07-10 16:03:34 UTC) #19
jam
lgtm https://codereview.chromium.org/367653002/diff/160001/content/browser/frame_host/navigation_request.h File content/browser/frame_host/navigation_request.h (right): https://codereview.chromium.org/367653002/diff/160001/content/browser/frame_host/navigation_request.h#newcode13 content/browser/frame_host/navigation_request.h:13: struct NavigationRequestInfo; nit: not needed because of the ...
6 years, 5 months ago (2014-07-15 00:05:44 UTC) #20
clamy
Thanks for the review! https://chromiumcodereview.appspot.com/367653002/diff/160001/content/browser/frame_host/navigation_request.h File content/browser/frame_host/navigation_request.h (right): https://chromiumcodereview.appspot.com/367653002/diff/160001/content/browser/frame_host/navigation_request.h#newcode13 content/browser/frame_host/navigation_request.h:13: struct NavigationRequestInfo; On 2014/07/15 00:05:43, ...
6 years, 5 months ago (2014-07-15 15:32:15 UTC) #21
clamy
The CQ bit was checked by clamy@chromium.org
6 years, 5 months ago (2014-07-15 15:32:21 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/367653002/180001
6 years, 5 months ago (2014-07-15 15:33:39 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-16 01:14:03 UTC) #24
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 05:02:12 UTC) #25
Message was sent while issue was closed.
Change committed as 283346

Powered by Google App Engine
This is Rietveld 408576698