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

Issue 2751103002: Reporting: Wrap existing classes in context. (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: Wrap existing classes in context. 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 CL takes the pile of small classes that I've written so far and wraps them in a single "context" object. It also changes the classes to accept a pointer to the context instead of several pointers to individual dependencies. It *also* creates a ReportingTestBase class that provides a properly configured context for all of the existing unittests to use, and switches the tests over. BUG=704259 Review-Url: https://codereview.chromium.org/2751103002 Cr-Commit-Position: refs/heads/master@{#462901} Committed: https://chromium.googlesource.com/chromium/src/+/ee4b55e3526065ac1d0f09a80372e17f26892c8e

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Patch Set 4 : Move before BrowsingDataRemover, GarbageCollector, and Serializer CLs. #

Total comments: 12

Patch Set 5 : Make requested changes. #

Patch Set 6 : Ditch ReportingContext::Init. #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+870 lines, -444 lines) Patch
M net/BUILD.gn View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M net/reporting/reporting_cache.h View 1 2 5 chunks +8 lines, -3 lines 0 comments Download
M net/reporting/reporting_cache.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M net/reporting/reporting_cache_unittest.cc View 1 2 5 chunks +100 lines, -95 lines 0 comments Download
A net/reporting/reporting_context.h View 1 2 3 4 5 1 chunk +82 lines, -0 lines 0 comments Download
A net/reporting/reporting_context.cc View 1 2 3 4 5 1 chunk +67 lines, -0 lines 0 comments Download
A net/reporting/reporting_delegate.h View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A net/reporting/reporting_delegate.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M net/reporting/reporting_delivery_agent.h View 1 2 3 4 5 6 4 chunks +11 lines, -11 lines 0 comments Download
M net/reporting/reporting_delivery_agent.cc View 1 2 3 4 5 6 5 chunks +15 lines, -23 lines 0 comments Download
M net/reporting/reporting_delivery_agent_unittest.cc View 1 2 3 4 9 chunks +114 lines, -178 lines 0 comments Download
M net/reporting/reporting_endpoint_manager.h View 1 2 3 chunks +10 lines, -7 lines 0 comments Download
M net/reporting/reporting_endpoint_manager.cc View 1 3 chunks +7 lines, -9 lines 0 comments Download
M net/reporting/reporting_endpoint_manager_unittest.cc View 1 2 2 chunks +59 lines, -83 lines 0 comments Download
M net/reporting/reporting_header_parser.h View 1 1 chunk +2 lines, -7 lines 0 comments Download
M net/reporting/reporting_header_parser.cc View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M net/reporting/reporting_header_parser_unittest.cc View 1 2 3 chunks +21 lines, -23 lines 0 comments Download
A net/reporting/reporting_policy.h View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A net/reporting/reporting_policy.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M net/reporting/reporting_test_util.h View 1 2 3 4 5 2 chunks +132 lines, -0 lines 0 comments Download
M net/reporting/reporting_test_util.cc View 1 2 3 4 5 2 chunks +119 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 33 (21 generated)
Julia Tuttle
PTAL, shivanisha.
3 years, 9 months ago (2017-03-22 20:07:06 UTC) #9
shivanisha
https://codereview.chromium.org/2751103002/diff/60001/net/reporting/reporting_context.h File net/reporting/reporting_context.h (right): https://codereview.chromium.org/2751103002/diff/60001/net/reporting/reporting_context.h#newcode76 net/reporting/reporting_context.h:76: private: nit: Can remove the extra private qualifier here. ...
3 years, 8 months ago (2017-04-03 15:39:05 UTC) #14
Julia Tuttle
PTAL, shivanisha. https://codereview.chromium.org/2751103002/diff/60001/net/reporting/reporting_context.h File net/reporting/reporting_context.h (right): https://codereview.chromium.org/2751103002/diff/60001/net/reporting/reporting_context.h#newcode76 net/reporting/reporting_context.h:76: private: On 2017/04/03 15:39:05, shivanisha wrote: > ...
3 years, 8 months ago (2017-04-04 18:28:02 UTC) #15
shivanisha
https://codereview.chromium.org/2751103002/diff/60001/net/reporting/reporting_delegate.h File net/reporting/reporting_delegate.h (right): https://codereview.chromium.org/2751103002/diff/60001/net/reporting/reporting_delegate.h#newcode20 net/reporting/reporting_delegate.h:20: // persisting data across embedder restarts. On 2017/04/04 at ...
3 years, 8 months ago (2017-04-05 16:52:57 UTC) #18
Julia Tuttle
PTAL, shivanisha. https://codereview.chromium.org/2751103002/diff/60001/net/reporting/reporting_delegate.h File net/reporting/reporting_delegate.h (right): https://codereview.chromium.org/2751103002/diff/60001/net/reporting/reporting_delegate.h#newcode20 net/reporting/reporting_delegate.h:20: // persisting data across embedder restarts. On ...
3 years, 8 months ago (2017-04-06 17:08:16 UTC) #19
shivanisha
lgtm https://codereview.chromium.org/2751103002/diff/60001/net/reporting/reporting_delegate.h File net/reporting/reporting_delegate.h (right): https://codereview.chromium.org/2751103002/diff/60001/net/reporting/reporting_delegate.h#newcode20 net/reporting/reporting_delegate.h:20: // persisting data across embedder restarts. On 2017/04/06 ...
3 years, 8 months ago (2017-04-06 17:15:30 UTC) #20
Julia Tuttle
PTAL for committer signoff, csharrison.
3 years, 8 months ago (2017-04-06 18:20:17 UTC) #22
Charlie Harrison
RS LGTM
3 years, 8 months ago (2017-04-06 18:21:41 UTC) #23
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/2751103002/100001
3 years, 8 months ago (2017-04-06 20:22:26 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/185722) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-06 20:27:31 UTC) #27
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/2751103002/120001
3 years, 8 months ago (2017-04-07 16:05:13 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 17:10:34 UTC) #33
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/ee4b55e3526065ac1d0f09a80372...

Powered by Google App Engine
This is Rietveld 408576698