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

Issue 2740833004: Reporting: Implement garbage collector. (Closed)

Created:
3 years, 9 months ago by Julia Tuttle
Modified:
3 years, 8 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reporting: Implement garbage collector. Reporting is a spec for delivering out-of-band reports from various other parts of the browser. See http://wicg.github.io/reporting/ for the spec, or https://goo.gl/pygX5I for details of the planned implementation in Chromium. This implements the garbage collector, which cleans out reports that haven't been delivered for too long or through too many attempts (and also clears reports on network changes, if so configured). BUG=704259 Review-Url: https://codereview.chromium.org/2740833004 Cr-Commit-Position: refs/heads/master@{#463359} Committed: https://chromium.googlesource.com/chromium/src/+/9f970c02c1feef9d61eff3fd52db7253eab1d9d9

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Total comments: 4

Patch Set 4 : Make requested changes. #

Total comments: 1

Patch Set 5 : rebase #

Patch Set 6 : Move after Context CL. #

Patch Set 7 : Add scheduling, etc. #

Patch Set 8 : rebase #

Total comments: 1

Patch Set 9 : Make GarbageCollector own Timer. #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -5 lines) Patch
M net/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M net/reporting/reporting_context.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -0 lines 0 comments Download
M net/reporting/reporting_context.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
A net/reporting/reporting_garbage_collector.h View 1 2 3 4 5 6 7 8 1 chunk +34 lines, -0 lines 0 comments Download
A net/reporting/reporting_garbage_collector.cc View 1 2 3 4 5 6 7 8 1 chunk +88 lines, -0 lines 0 comments Download
A net/reporting/reporting_garbage_collector_unittest.cc View 1 2 3 4 5 6 1 chunk +91 lines, -0 lines 0 comments Download
M net/reporting/reporting_policy.h View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M net/reporting/reporting_policy.cc View 1 2 3 4 5 6 2 chunks +8 lines, -2 lines 0 comments Download
M net/reporting/reporting_test_util.h View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -0 lines 0 comments Download
M net/reporting/reporting_test_util.cc View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 56 (35 generated)
Julia Tuttle
PTAL, shivanisha.
3 years, 9 months ago (2017-03-09 20:33:54 UTC) #3
shivanisha
lgtm % nits https://codereview.chromium.org/2740833004/diff/40001/net/reporting/reporting_garbage_collector.cc File net/reporting/reporting_garbage_collector.cc (right): https://codereview.chromium.org/2740833004/diff/40001/net/reporting/reporting_garbage_collector.cc#newcode20 net/reporting/reporting_garbage_collector.cc:20: bool network_changed) { DCHECK(cache) https://codereview.chromium.org/2740833004/diff/40001/net/reporting/reporting_garbage_collector.cc#newcode25 net/reporting/reporting_garbage_collector.cc:25: ...
3 years, 9 months ago (2017-03-16 00:22:45 UTC) #13
Julia Tuttle
Thanks, shivanisha! https://codereview.chromium.org/2740833004/diff/40001/net/reporting/reporting_garbage_collector.cc File net/reporting/reporting_garbage_collector.cc (right): https://codereview.chromium.org/2740833004/diff/40001/net/reporting/reporting_garbage_collector.cc#newcode20 net/reporting/reporting_garbage_collector.cc:20: bool network_changed) { On 2017/03/16 00:22:45, shivanisha ...
3 years, 9 months ago (2017-03-21 19:26:57 UTC) #15
shivanisha
On 2017/03/21 at 19:26:57, juliatuttle wrote: > Thanks, shivanisha! > > https://codereview.chromium.org/2740833004/diff/40001/net/reporting/reporting_garbage_collector.cc > File net/reporting/reporting_garbage_collector.cc ...
3 years, 9 months ago (2017-03-27 14:32:43 UTC) #21
Julia Tuttle
PTAL, rdsmith
3 years, 8 months ago (2017-03-30 20:53:24 UTC) #23
Randy Smith (Not in Mondays)
High level design question/clarification. https://codereview.chromium.org/2740833004/diff/60001/net/reporting/reporting_garbage_collector.h File net/reporting/reporting_garbage_collector.h (right): https://codereview.chromium.org/2740833004/diff/60001/net/reporting/reporting_garbage_collector.h#newcode19 net/reporting/reporting_garbage_collector.h:19: class NET_EXPORT ReportingGarbageCollector { Why ...
3 years, 8 months ago (2017-03-31 15:36:55 UTC) #24
Julia Tuttle
On 2017/03/31 15:36:55, Randy Smith (Not in Mondays) wrote: > High level design question/clarification. > ...
3 years, 8 months ago (2017-03-31 16:43:10 UTC) #27
Julia Tuttle
On 2017/03/31 16:43:10, Julia Tuttle wrote: > On 2017/03/31 15:36:55, Randy Smith (Not in Mondays) ...
3 years, 8 months ago (2017-04-03 16:22:40 UTC) #34
Julia Tuttle
PTAL shivanisha -- this has changed substantially.
3 years, 8 months ago (2017-04-04 18:38:08 UTC) #35
shivanisha
https://codereview.chromium.org/2740833004/diff/140001/net/reporting/reporting_context.h File net/reporting/reporting_context.h (right): https://codereview.chromium.org/2740833004/diff/140001/net/reporting/reporting_context.h#newcode83 net/reporting/reporting_context.h:83: std::unique_ptr<base::Timer> garbage_collection_timer_; Since the garbage_collector_ object is responsible for ...
3 years, 8 months ago (2017-04-05 16:44:07 UTC) #36
Julia Tuttle
On 2017/04/05 16:44:07, shivanisha wrote: > https://codereview.chromium.org/2740833004/diff/140001/net/reporting/reporting_context.h > File net/reporting/reporting_context.h (right): > > https://codereview.chromium.org/2740833004/diff/140001/net/reporting/reporting_context.h#newcode83 > ...
3 years, 8 months ago (2017-04-06 17:53:09 UTC) #37
Julia Tuttle
(Also, since you can't build a timer that can fire based on a TickClock, I'm ...
3 years, 8 months ago (2017-04-06 18:11:10 UTC) #38
Julia Tuttle
Removing rdsmith since I'm waiting on shivanisha's review; will add csharrison later for committer signoff ...
3 years, 8 months ago (2017-04-07 16:27:36 UTC) #40
shivanisha
On 2017/04/06 at 17:53:09, juliatuttle wrote: > On 2017/04/05 16:44:07, shivanisha wrote: > > https://codereview.chromium.org/2740833004/diff/140001/net/reporting/reporting_context.h ...
3 years, 8 months ago (2017-04-07 16:44:38 UTC) #41
Julia Tuttle
On 2017/04/07 16:44:38, shivanisha wrote: > On 2017/04/06 at 17:53:09, juliatuttle wrote: > > On ...
3 years, 8 months ago (2017-04-07 18:38:31 UTC) #42
Julia Tuttle
PTAL, shivanisha.
3 years, 8 months ago (2017-04-07 18:38:50 UTC) #43
shivanisha
On 2017/04/07 at 18:38:50, juliatuttle wrote: > PTAL, shivanisha. lgtm
3 years, 8 months ago (2017-04-10 16:38:59 UTC) #48
Julia Tuttle
PTAL csharrison for committer signoff.
3 years, 8 months ago (2017-04-10 16:52:33 UTC) #50
Charlie Harrison
RS LGTM
3 years, 8 months ago (2017-04-10 17:38:36 UTC) #51
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/2740833004/180001
3 years, 8 months ago (2017-04-10 18:23:03 UTC) #53
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 19:28:11 UTC) #56
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/9f970c02c1feef9d61eff3fd52db...

Powered by Google App Engine
This is Rietveld 408576698