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

Issue 2483003003: Introduce CertificateReportingService class to handle certificate reports. (Closed)

Created:
4 years, 1 month ago by meacer
Modified:
4 years ago
Reviewers:
Jialiu Lin, estark
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce CertificateReportingService class to handle certificate reports. This class is eventually going to handle uploading and retrying of certificate reports. In this CL, it contains three sub classes: Report: A struct that represents the report to be sent. BoundedReportList: A container that contains a bounded number of certificate reports, ordered by report creation date. First report is the newest, last report is the oldest. EventObserver: A class to observe events generated by the service and reporter. Reporter: The class that contains the actual retry logic. CertificateReportingService is not yet wired to any certificate reporting path and does not contain reporting logic. Those will be added in follow up CLs along with browser tests. BUG=554323 Committed: https://crrev.com/35c6b90321c0174bf1a1841addddce21f7678041 Cr-Commit-Position: refs/heads/master@{#434540}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 15

Patch Set 3 : estark comments #

Patch Set 4 : Stashed changes are back #

Total comments: 1

Patch Set 5 : Move CertificateReportingService to safe_browsing #

Total comments: 11

Patch Set 6 : jialiul comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+417 lines, -0 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/certificate_reporting_service.h View 1 2 3 4 5 1 chunk +110 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/certificate_reporting_service.cc View 1 2 3 4 5 1 chunk +130 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/certificate_reporting_service_unittest.cc View 1 2 3 4 1 chunk +174 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (12 generated)
meacer
estark: Another one. This is 3rd CL for report retries and is based on https://codereview.chromium.org/2483993002/.
4 years, 1 month ago (2016-11-07 23:34:28 UTC) #2
meacer
Sorry for the rebase, had to do it since I changed ErrorReporter to take callbacks ...
4 years, 1 month ago (2016-11-15 02:04:21 UTC) #3
estark
Didn't make it through the whole thing yet but I left a few high-level comments ...
4 years, 1 month ago (2016-11-17 14:51:59 UTC) #4
meacer
KeyedServices are registered during browser initialization and are alive all the way to shutdown. They ...
4 years, 1 month ago (2016-11-17 20:09:08 UTC) #5
meacer
Looks like I messed up the patchsets. Please wait for Patchset #4 before reviewing.
4 years, 1 month ago (2016-11-17 20:11:50 UTC) #6
meacer
Okay, I was missing some of the changes, it's ready for review now. Note that ...
4 years, 1 month ago (2016-11-17 20:19:38 UTC) #7
estark
On 2016/11/17 20:09:08, Mustafa Emre Acer wrote: > KeyedServices are registered during browser initialization and ...
4 years, 1 month ago (2016-11-18 02:55:17 UTC) #8
meacer
On 2016/11/18 02:55:17, estark (slow thru Nov 18) wrote: > On 2016/11/17 20:09:08, Mustafa Emre ...
4 years, 1 month ago (2016-11-18 18:40:17 UTC) #9
estark
Thanks for the explanations, lgtm https://codereview.chromium.org/2483003003/diff/60001/chrome/browser/ssl/certificate_reporting_service.cc File chrome/browser/ssl/certificate_reporting_service.cc (right): https://codereview.chromium.org/2483003003/diff/60001/chrome/browser/ssl/certificate_reporting_service.cc#newcode25 chrome/browser/ssl/certificate_reporting_service.cc:25: // Report older than ...
4 years, 1 month ago (2016-11-19 00:29:52 UTC) #10
meacer
Thanks, though, I probably won't land this CL (sorry!) For some reason I was focused ...
4 years ago (2016-11-21 21:10:55 UTC) #11
meacer
Okay, a change of plans again and I'm going to land this CL. I moved ...
4 years ago (2016-11-23 20:13:58 UTC) #13
Jialiu Lin
lgtm with some nits https://codereview.chromium.org/2483003003/diff/80001/chrome/browser/safe_browsing/certificate_reporting_service.cc File chrome/browser/safe_browsing/certificate_reporting_service.cc (right): https://codereview.chromium.org/2483003003/diff/80001/chrome/browser/safe_browsing/certificate_reporting_service.cc#newcode11 chrome/browser/safe_browsing/certificate_reporting_service.cc:11: // First item is ordered ...
4 years ago (2016-11-23 23:06:14 UTC) #14
meacer
Thanks Jialiu. https://codereview.chromium.org/2483003003/diff/80001/chrome/browser/safe_browsing/certificate_reporting_service.cc File chrome/browser/safe_browsing/certificate_reporting_service.cc (right): https://codereview.chromium.org/2483003003/diff/80001/chrome/browser/safe_browsing/certificate_reporting_service.cc#newcode11 chrome/browser/safe_browsing/certificate_reporting_service.cc:11: // First item is ordered before the ...
4 years ago (2016-11-23 23:59:03 UTC) #15
Jialiu Lin
still lgtm.:-) https://codereview.chromium.org/2483003003/diff/80001/chrome/browser/safe_browsing/certificate_reporting_service.cc File chrome/browser/safe_browsing/certificate_reporting_service.cc (right): https://codereview.chromium.org/2483003003/diff/80001/chrome/browser/safe_browsing/certificate_reporting_service.cc#newcode32 chrome/browser/safe_browsing/certificate_reporting_service.cc:32: std::sort(items_.begin(), items_.end(), ReportCompareFunc); On 2016/11/23 at 23:59:02, ...
4 years ago (2016-11-24 00:28:29 UTC) #16
meacer
Thanks! Landing.
4 years ago (2016-11-24 00:35:56 UTC) #17
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/2483003003/100001
4 years ago (2016-11-24 00:36:34 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years ago (2016-11-24 02:38:05 UTC) #22
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/2483003003/100001
4 years ago (2016-11-24 05:50:10 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_rel_ng on ...
4 years ago (2016-11-24 07:51:17 UTC) #26
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/2483003003/100001
4 years ago (2016-11-24 15:10:56 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/277628)
4 years ago (2016-11-24 16:59:39 UTC) #30
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/2483003003/100001
4 years ago (2016-11-25 18:18:09 UTC) #32
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-11-25 19:22:21 UTC) #34
commit-bot: I haz the power
4 years ago (2016-11-25 19:24:21 UTC) #36
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/35c6b90321c0174bf1a1841addddce21f7678041
Cr-Commit-Position: refs/heads/master@{#434540}

Powered by Google App Engine
This is Rietveld 408576698