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

Issue 1427633004: Send navigation_start to the browser in DidStartProvisionalLoad IPC (Closed)

Created:
5 years, 1 month ago by Charlie Harrison
Modified:
5 years, 1 month 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, loading-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@navigation_start_renderer
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Send navigation_start to the browser in DidStartProvisionalLoad IPC The timestamp gets attached to NavigationHandle, which exposes it to all consumers. This is 3/3 of the effort to add a navigation_start timestamp to DidStartProvisional load. The full CL we're breaking up is here: https://codereview.chromium.org/1425823002/ BUG=548335 Committed: https://crrev.com/e77e5ce0db3c24b3a5e9e5b8aac2afe410a37ceb Cr-Commit-Position: refs/heads/master@{#359745}

Patch Set 1 #

Total comments: 9

Patch Set 2 : More tests #

Patch Set 3 : history navigation test #

Patch Set 4 : Write GoToOffsetWithParams to use GoToOffset (DRY) #

Total comments: 2

Patch Set 5 : Don't expose too much in public test infra #

Total comments: 2

Patch Set 6 : Remove public method from NavigationHandle until consumers need it #

Total comments: 2

Patch Set 7 : Comments #

Total comments: 21

Patch Set 8 : nasko review #

Total comments: 2

Patch Set 9 : ASSERT => EXPECT and comment change #

Total comments: 2

Patch Set 10 : Avi review #

Patch Set 11 : Conflict Resolution: FrameHostMsg_DidStartProvisionalLoad #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -38 lines) Patch
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -7 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 2 3 4 5 6 7 4 chunks +16 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/navigator.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -4 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M content/public/browser/navigation_handle.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +19 lines, -6 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +123 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 3 chunks +3 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (8 generated)
Charlie Harrison
PTAL. Note this still leaves some functionality absent, notably the logic in when the browser ...
5 years, 1 month ago (2015-11-03 19:17:31 UTC) #3
clamy
Thanks! A few comments. BeforeUnload is only an issue with PlzNavigate (where we create the ...
5 years, 1 month ago (2015-11-04 13:53:40 UTC) #4
Charlie Harrison
Will work on the tests later today. Thanks for the prompt reviews! https://codereview.chromium.org/1427633004/diff/1/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h ...
5 years, 1 month ago (2015-11-04 14:24:52 UTC) #5
clamy
https://codereview.chromium.org/1427633004/diff/1/content/renderer/render_view_browsertest.cc File content/renderer/render_view_browsertest.cc (right): https://codereview.chromium.org/1427633004/diff/1/content/renderer/render_view_browsertest.cc#newcode2313 content/renderer/render_view_browsertest.cc:2313: TEST_F(RenderViewImplTest, BrowserNavigationStartSuccessfullyTransmitted) { On 2015/11/04 14:24:52, csharrison wrote: > ...
5 years, 1 month ago (2015-11-04 15:59:09 UTC) #6
Charlie Harrison
Updated the tests. They needed a little more infra for back/forward navs.
5 years, 1 month ago (2015-11-05 04:34:36 UTC) #7
clamy
Thanks! My main issue is with the update to the test infra, due to the ...
5 years, 1 month ago (2015-11-05 17:35:06 UTC) #8
Charlie Harrison
On 2015/11/05 17:35:06, clamy wrote: > Thanks! My main issue is with the update to ...
5 years, 1 month ago (2015-11-05 17:40:12 UTC) #9
Charlie Harrison
On 2015/11/05 17:40:12, csharrison wrote: > On 2015/11/05 17:35:06, clamy wrote: > > Thanks! My ...
5 years, 1 month ago (2015-11-05 18:18:13 UTC) #10
clamy
Thanks! The code inside content/ is fine, but there is an issue with the public ...
5 years, 1 month ago (2015-11-06 14:28:40 UTC) #11
Charlie Harrison
On 2015/11/06 14:28:40, clamy wrote: > Thanks! The code inside content/ is fine, but there ...
5 years, 1 month ago (2015-11-06 15:09:37 UTC) #12
clamy
Thanks! Lgtm with 2 nits. https://codereview.chromium.org/1427633004/diff/100001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/1427633004/diff/100001/content/browser/frame_host/navigation_handle_impl.h#newcode94 content/browser/frame_host/navigation_handle_impl.h:94: // TODO(csharrison) add this ...
5 years, 1 month ago (2015-11-06 16:28:20 UTC) #13
Charlie Harrison
nasko@ friendly ping
5 years, 1 month ago (2015-11-11 23:54:51 UTC) #14
nasko
Adding avi@ for review of history navigation in the unit test. https://codereview.chromium.org/1427633004/diff/120001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): ...
5 years, 1 month ago (2015-11-13 21:52:54 UTC) #16
Charlie Harrison
Thanks for the review! https://codereview.chromium.org/1427633004/diff/120001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/1427633004/diff/120001/content/browser/frame_host/navigation_handle_impl.cc#newcode102 content/browser/frame_host/navigation_handle_impl.cc:102: const base::TimeTicks& NavigationHandleImpl::GetNavigationStart() { On ...
5 years, 1 month ago (2015-11-14 00:25:00 UTC) #17
nasko
LGTM with a few nits. Please wait for avi@'s review on the bit in the ...
5 years, 1 month ago (2015-11-14 00:33:24 UTC) #18
Charlie Harrison
Done. I'll look into the clang-format bug. Thanks again.
5 years, 1 month ago (2015-11-14 00:53:13 UTC) #19
Avi (use Gerrit)
This is essentially a unit test where everything is faked, and this isn't an unreasonable ...
5 years, 1 month ago (2015-11-14 01:08:34 UTC) #20
Charlie Harrison
Done. Thanks Avi!
5 years, 1 month ago (2015-11-14 01:30:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1427633004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1427633004/180001
5 years, 1 month ago (2015-11-14 01:33:16 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/96157)
5 years, 1 month ago (2015-11-14 02:17:49 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1427633004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1427633004/200001
5 years, 1 month ago (2015-11-15 00:30:43 UTC) #29
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 1 month ago (2015-11-15 02:31:26 UTC) #30
commit-bot: I haz the power
5 years, 1 month ago (2015-11-15 02:32:23 UTC) #31
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/e77e5ce0db3c24b3a5e9e5b8aac2afe410a37ceb
Cr-Commit-Position: refs/heads/master@{#359745}

Powered by Google App Engine
This is Rietveld 408576698