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

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

Issue 1076273002: Add interstitial info to certificate reports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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 namespace chrome_browser_net {
11 class CertLoggerRequest;
12 } // namespace chrome_browser_net
13
10 namespace net { 14 namespace net {
11 class SSLInfo; 15 class SSLInfo;
12 } // namespace net 16 } // namespace net
13 17
14 // An interface used by interstitial pages to send reports of invalid 18 // An interface used by interstitial pages to send reports of invalid
15 // certificate chains. 19 // certificate chains.
16 class SSLCertReporter { 20 class SSLCertReporter {
17 public: 21 public:
18 virtual ~SSLCertReporter() {} 22 virtual ~SSLCertReporter() {}
19 23
20 // Send a report for |hostname| with the given |ssl_info| to the 24 virtual void SendReport(
21 // report collection endpoint. |callback| will be run when the report has 25 const chrome_browser_net::CertLoggerRequest& report) = 0;
22 // been sent off (not necessarily after a response has been received).
23 virtual void ReportInvalidCertificateChain(const std::string& hostname,
24 const net::SSLInfo& ssl_info) = 0;
25 }; 26 };
26 27
27 #endif // CHROME_BROWSER_SSL_SSL_CERT_REPORTER_H_ 28 #endif // CHROME_BROWSER_SSL_SSL_CERT_REPORTER_H_
OLDNEW
« chrome/browser/ssl/ssl_blocking_page.cc ('K') | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698