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

Issue 2413663003: Expose GlobalRequestID in NavigationHandle and ResourceRequestInfo. (Closed)

Created:
4 years, 2 months ago by Not at Google. Contact bengr
Modified:
4 years, 1 month ago
Reviewers:
clamy, RyanSturm, Raj
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, Randy Smith (Not in Mondays), darin-cc_chromium.org, loading-reviews_chromium.org, mmenke, Charlie Reis, nasko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose GlobalRequestID in NavigationHandle and ResourceRequestInfo. Create DataUseRecorder instances associated with page loads. Instances are associated with either pending navigations or render frame hosts depending on the state of the page load. Use GlobalRequestID to associate MAIN_FRAME URLRequests with their corresponding pending navigation. Complete life-cycle of the DataUseRecorders will be implemented in a forthcoming cl. BUG=660065 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/763c3fe382f8ae7c39cfa28191eab55b1036e4e6 Committed: https://crrev.com/187e41f689795ef7ea15dc804ef31289211b12e9 Cr-Original-Commit-Position: refs/heads/master@{#431282} Cr-Commit-Position: refs/heads/master@{#432672}

Patch Set 1 #

Patch Set 2 : Formatting #

Patch Set 3 : Fix accidental line delete #

Patch Set 4 : Add frame map #

Patch Set 5 : Move background_contents to its own cl. #

Patch Set 6 : Remove unused #

Patch Set 7 : Add frame map #

Total comments: 20

Patch Set 8 : Addressed comments #

Total comments: 8

Patch Set 9 : Add comments. Relocate method. #

Total comments: 4

Patch Set 10 : Use ReadyToCommitNavigation #

Patch Set 11 : Fix comments #

Patch Set 12 : Remove pending navigation queue. #

Total comments: 14

Patch Set 13 : Ignore PlzNavigate #

Total comments: 8

Patch Set 14 : comments #

Patch Set 15 : Use OnURLRequestDestroyed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -82 lines) Patch
M chrome/browser/data_use_measurement/chrome_data_use_ascriber.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +75 lines, -7 lines 0 comments Download
M chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +121 lines, -1 line 0 comments Download
M chrome/browser/data_use_measurement/chrome_data_use_ascriber_service.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -11 lines 0 comments Download
M chrome/browser/data_use_measurement/chrome_data_use_ascriber_service.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +3 lines, -20 lines 0 comments Download
M chrome/browser/data_use_measurement/data_use_web_contents_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -11 lines 0 comments Download
M chrome/browser/data_use_measurement/data_use_web_contents_observer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M components/data_use_measurement/core/data_use_ascriber.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M components/data_use_measurement/core/data_use_ascriber.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -3 lines 0 comments Download
M components/data_use_measurement/core/data_use_network_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M components/data_use_measurement/core/data_use_network_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -3 lines 0 comments Download
M components/data_use_measurement/core/data_use_recorder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M components/data_use_measurement/core/data_use_recorder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +5 lines, -9 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -2 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 5 chunks +7 lines, -4 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -1 line 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M content/public/browser/navigation_handle.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +10 lines, -0 lines 0 comments Download
M content/public/browser/resource_request_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 144 (118 generated)
Not at Google. Contact bengr
Following up from the email thread, here is a cl to expose GlobalRequestID in NavigationHandle ...
4 years, 2 months ago (2016-10-12 19:53:01 UTC) #11
Charlie Harrison
drive-by: The rule of the land in //content is that nothing gets added to the ...
4 years, 2 months ago (2016-10-12 19:58:03 UTC) #13
Not at Google. Contact bengr
On 2016/10/12 19:58:03, Charlie Harrison wrote: > drive-by: The rule of the land in //content ...
4 years, 2 months ago (2016-10-12 21:48:23 UTC) #16
clamy
On 2016/10/12 21:48:23, kundaji wrote: > On 2016/10/12 19:58:03, Charlie Harrison wrote: > > drive-by: ...
4 years, 2 months ago (2016-10-13 13:18:23 UTC) #17
Not at Google. Contact bengr
PTAL clamy@: content/* rajendrant@, ryansturm@: chrome/browser/data_use_measurement/*
4 years, 1 month ago (2016-10-27 16:49:43 UTC) #51
Raj
On 2016/10/27 16:49:43, kundaji wrote: > PTAL > > clamy@: > content/* > > rajendrant@, ...
4 years, 1 month ago (2016-10-27 20:33:35 UTC) #60
Raj
chrome/browser/data_use_measurement/* lgtm % nits https://codereview.chromium.org/2413663003/diff/240001/chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc File chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc (right): https://codereview.chromium.org/2413663003/diff/240001/chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc#newcode110 chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc:110: auto navigation_iter = pending_navigation_data_use_map_.find( nit: ...
4 years, 1 month ago (2016-10-27 20:33:56 UTC) #61
RyanSturm
bunch of nits, I'll look more at implementation tomorrow. https://codereview.chromium.org/2413663003/diff/240001/chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc File chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc (right): https://codereview.chromium.org/2413663003/diff/240001/chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc#newcode82 chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc:82: ...
4 years, 1 month ago (2016-10-27 22:41:21 UTC) #62
Not at Google. Contact bengr
Thanks for the review. PTAL. https://codereview.chromium.org/2413663003/diff/240001/chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc File chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc (right): https://codereview.chromium.org/2413663003/diff/240001/chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc#newcode82 chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc:82: auto user_data = static_cast<DataUseRecorderEntryAsUserData*>( ...
4 years, 1 month ago (2016-10-28 18:43:33 UTC) #65
Charlie Reis
On 2016/10/28 18:43:33, kundaji wrote: > clamy@: Any preference here? (Note: Her status says OOO ...
4 years, 1 month ago (2016-10-29 00:07:10 UTC) #68
Not at Google. Contact bengr
Thanks for the review! https://codereview.chromium.org/2413663003/diff/260001/content/public/browser/navigation_handle.h File content/public/browser/navigation_handle.h (right): https://codereview.chromium.org/2413663003/diff/260001/content/public/browser/navigation_handle.h#newcode186 content/public/browser/navigation_handle.h:186: virtual bool HasNetworkResponseStarted() = 0; ...
4 years, 1 month ago (2016-11-01 21:11:07 UTC) #71
RyanSturm
This is definitely only a partial implementation, so there are a few implementation details that ...
4 years, 1 month ago (2016-11-02 21:41:58 UTC) #74
clamy
Thanks! A few comments below. https://codereview.chromium.org/2413663003/diff/280001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2413663003/diff/280001/content/browser/frame_host/navigation_handle_impl.cc#newcode369 content/browser/frame_host/navigation_handle_impl.cc:369: DCHECK_GE(state_, WILL_PROCESS_RESPONSE); This should ...
4 years, 1 month ago (2016-11-04 14:44:17 UTC) #75
RyanSturm
lgtm % nits, add me to review the follow-up CL with core implementation. https://codereview.chromium.org/2413663003/diff/340001/chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc File ...
4 years, 1 month ago (2016-11-07 19:33:19 UTC) #85
Not at Google. Contact bengr
Added more comments that explain details, such as why the recorder list is pertinent in ...
4 years, 1 month ago (2016-11-07 22:17:18 UTC) #90
Not at Google. Contact bengr
clamy@: Can you please take a look.
4 years, 1 month ago (2016-11-08 22:25:25 UTC) #94
clamy
Thanks! A few comments and this should be good. https://codereview.chromium.org/2413663003/diff/360001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2413663003/diff/360001/content/browser/frame_host/navigation_handle_impl.h#newcode138 content/browser/frame_host/navigation_handle_impl.h:138: ...
4 years, 1 month ago (2016-11-09 16:06:54 UTC) #95
Not at Google. Contact bengr
Thanks for the review! PTAL. https://codereview.chromium.org/2413663003/diff/360001/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2413663003/diff/360001/content/browser/frame_host/navigation_handle_impl.h#newcode138 content/browser/frame_host/navigation_handle_impl.h:138: // This is valid ...
4 years, 1 month ago (2016-11-09 22:30:01 UTC) #100
clamy
Thanks! Lgtm.
4 years, 1 month ago (2016-11-10 17:30:37 UTC) #104
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2413663003/400001
4 years, 1 month ago (2016-11-10 17:40:34 UTC) #107
commit-bot: I haz the power
Committed patchset #14 (id:400001)
4 years, 1 month ago (2016-11-10 17:45:51 UTC) #109
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/763c3fe382f8ae7c39cfa28191eab55b1036e4e6 Cr-Commit-Position: refs/heads/master@{#431282}
4 years, 1 month ago (2016-11-10 18:08:22 UTC) #111
Dirk Pranke
A revert of this CL (patchset #14 id:400001) has been created in https://codereview.chromium.org/2498433002/ by dpranke@chromium.org. ...
4 years, 1 month ago (2016-11-10 21:48:36 UTC) #112
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2413663003/520001
4 years, 1 month ago (2016-11-16 22:37:46 UTC) #140
commit-bot: I haz the power
Committed patchset #15 (id:520001)
4 years, 1 month ago (2016-11-17 00:15:08 UTC) #142
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 00:32:51 UTC) #144
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/187e41f689795ef7ea15dc804ef31289211b12e9
Cr-Commit-Position: refs/heads/master@{#432672}

Powered by Google App Engine
This is Rietveld 408576698