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

Issue 2354323002: Propagate network delegate events to ChromeDataUseAscriber. (Closed)

Created:
4 years, 3 months ago by Not at Google. Contact bengr
Modified:
4 years, 2 months ago
Reviewers:
bengr, mmenke, Raj
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Propagate network delegate events to ChromeDataUseAscriber. ChromeDataUseAscriber ascribes all data use to logical entities such as page loads. Propagating pertinent network events to the ascriber provides it with the hooks to track data usage. The actual tracking will be done in a future cl. BUG=645188 Committed: https://crrev.com/c6135966d9e76c2f69f21f1f6a24be7609309b0d Cr-Commit-Position: refs/heads/master@{#420926}

Patch Set 1 #

Patch Set 2 : Set up in profile_io_data #

Patch Set 3 : fix missing include #

Patch Set 4 : Variable name #

Patch Set 5 : Fix tests #

Patch Set 6 : Use LayeredNetworkDelegate #

Patch Set 7 : Added comments #

Total comments: 4

Patch Set 8 : Move delegate creation to ascriber. #

Total comments: 6

Patch Set 9 : new lines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -2 lines) Patch
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M components/data_use_measurement/core/BUILD.gn View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M components/data_use_measurement/core/data_use_ascriber.h View 1 2 3 4 5 6 7 8 2 chunks +24 lines, -0 lines 0 comments Download
A components/data_use_measurement/core/data_use_ascriber.cc View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download
A components/data_use_measurement/core/data_use_network_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +58 lines, -0 lines 0 comments Download
A components/data_use_measurement/core/data_use_network_delegate.cc View 1 2 3 4 5 1 chunk +54 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (33 generated)
Not at Google. Contact bengr
bengr: components/data_use_measurement/* mmenke: chrome/browser/*
4 years, 3 months ago (2016-09-21 16:19:14 UTC) #5
mmenke
On 2016/09/21 16:19:14, kundaji wrote: > bengr: > components/data_use_measurement/* > > mmenke: > chrome/browser/* Should ...
4 years, 3 months ago (2016-09-21 17:57:27 UTC) #14
Not at Google. Contact bengr
On 2016/09/21 17:57:27, mmenke wrote: > On 2016/09/21 16:19:14, kundaji wrote: > > bengr: > ...
4 years, 3 months ago (2016-09-21 19:04:26 UTC) #17
mmenke
On 2016/09/21 19:04:26, kundaji wrote: > On 2016/09/21 17:57:27, mmenke wrote: > > On 2016/09/21 ...
4 years, 3 months ago (2016-09-21 19:06:05 UTC) #18
Not at Google. Contact bengr
On 2016/09/21 19:06:05, mmenke wrote: > On 2016/09/21 19:04:26, kundaji wrote: > > On 2016/09/21 ...
4 years, 3 months ago (2016-09-21 20:32:13 UTC) #21
mmenke
On 2016/09/21 20:32:13, kundaji wrote: > On 2016/09/21 19:06:05, mmenke wrote: > > On 2016/09/21 ...
4 years, 3 months ago (2016-09-21 20:34:51 UTC) #22
Not at Google. Contact bengr
On 2016/09/21 20:34:51, mmenke wrote: > On 2016/09/21 20:32:13, kundaji wrote: > > On 2016/09/21 ...
4 years, 3 months ago (2016-09-21 23:24:12 UTC) #25
mmenke
ProfileImpIOData, IOData LGTM. I assume it's deliberate that you're not hooking up incognito mode. https://codereview.chromium.org/2354323002/diff/120001/chrome/browser/io_thread.cc ...
4 years, 3 months ago (2016-09-22 14:36:45 UTC) #30
Not at Google. Contact bengr
Yes, deliberately not hooking up incognito. Thanks for confirming. https://codereview.chromium.org/2354323002/diff/120001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/2354323002/diff/120001/chrome/browser/io_thread.cc#newcode52 chrome/browser/io_thread.cc:52: ...
4 years, 3 months ago (2016-09-22 16:35:56 UTC) #33
Raj
lgtm
4 years, 3 months ago (2016-09-22 20:45:10 UTC) #37
bengr
lgtm with nits. https://codereview.chromium.org/2354323002/diff/140001/components/data_use_measurement/core/data_use_ascriber.cc File components/data_use_measurement/core/data_use_ascriber.cc (right): https://codereview.chromium.org/2354323002/diff/140001/components/data_use_measurement/core/data_use_ascriber.cc#newcode20 components/data_use_measurement/core/data_use_ascriber.cc:20: void DataUseAscriber::OnBeforeUrlRequest(net::URLRequest* request) {} It's hard ...
4 years, 3 months ago (2016-09-23 21:21:13 UTC) #40
Not at Google. Contact bengr
https://codereview.chromium.org/2354323002/diff/140001/components/data_use_measurement/core/data_use_ascriber.cc File components/data_use_measurement/core/data_use_ascriber.cc (right): https://codereview.chromium.org/2354323002/diff/140001/components/data_use_measurement/core/data_use_ascriber.cc#newcode20 components/data_use_measurement/core/data_use_ascriber.cc:20: void DataUseAscriber::OnBeforeUrlRequest(net::URLRequest* request) {} On 2016/09/23 21:21:13, bengr wrote: ...
4 years, 3 months ago (2016-09-23 23:18:10 UTC) #41
Not at Google. Contact bengr
https://codereview.chromium.org/2354323002/diff/140001/components/data_use_measurement/core/data_use_ascriber.h File components/data_use_measurement/core/data_use_ascriber.h (right): https://codereview.chromium.org/2354323002/diff/140001/components/data_use_measurement/core/data_use_ascriber.h#newcode9 components/data_use_measurement/core/data_use_ascriber.h:9: #include <memory> On 2016/09/23 21:21:13, bengr wrote: > Add ...
4 years, 2 months ago (2016-09-26 16:29:00 UTC) #42
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/2354323002/160001
4 years, 2 months ago (2016-09-26 16:29:31 UTC) #45
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 2 months ago (2016-09-26 17:54:51 UTC) #47
commit-bot: I haz the power
4 years, 2 months ago (2016-09-26 17:57:26 UTC) #49
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/c6135966d9e76c2f69f21f1f6a24be7609309b0d
Cr-Commit-Position: refs/heads/master@{#420926}

Powered by Google App Engine
This is Rietveld 408576698