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

Side by Side Diff: chrome/browser/ssl/ssl_cert_reporter.h

Issue 2543523002: Implement main CertificateReportingService code and add unit tests. (Closed)
Patch Set: jialiul comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SSL_SSL_CERT_REPORTER_H_ 5 #ifndef CHROME_BROWSER_SSL_SSL_CERT_REPORTER_H_
6 #define CHROME_BROWSER_SSL_SSL_CERT_REPORTER_H_ 6 #define CHROME_BROWSER_SSL_SSL_CERT_REPORTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 // An interface used by interstitial pages to send reports of invalid 10 // An interface used by interstitial pages to send reports of invalid
11 // certificate chains. 11 // certificate chains.
12 class SSLCertReporter { 12 class SSLCertReporter {
13 public: 13 public:
14 virtual ~SSLCertReporter() {} 14 virtual ~SSLCertReporter() {}
15 15
16 // Sends a serialized certificate report to the report collection 16 // Sends a serialized certificate report to the report collection
17 // endpoint. 17 // endpoint.
18 virtual void ReportInvalidCertificateChain( 18 virtual void ReportInvalidCertificateChain(
19 const std::string& serialized_report) = 0; 19 const std::string& serialized_report) = 0;
20
21 // Called when a report send was abandoned.
22 virtual void OnDidNotSendReport() = 0;
estark 2016/12/01 01:46:54 It looks like this only has empty overrides, are y
meacer 2016/12/06 02:22:34 Removed.
20 }; 23 };
21 24
22 #endif // CHROME_BROWSER_SSL_SSL_CERT_REPORTER_H_ 25 #endif // CHROME_BROWSER_SSL_SSL_CERT_REPORTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698