| OLD | NEW |
| 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 net { | 10 namespace net { |
| 11 class SSLInfo; | 11 class SSLInfo; |
| 12 } // namespace net | 12 } // namespace net |
| 13 | 13 |
| 14 // An interface used by interstitial pages to send reports of invalid | 14 // An interface used by interstitial pages to send reports of invalid |
| 15 // certificate chains. | 15 // certificate chains. |
| 16 class SSLCertReporter { | 16 class SSLCertReporter { |
| 17 public: | 17 public: |
| 18 virtual ~SSLCertReporter() {} | 18 virtual ~SSLCertReporter() {} |
| 19 | 19 |
| 20 // Send a report for |hostname| with the given |ssl_info| to the | 20 // Sends a serialized certificate report to the report collection |
| 21 // report collection endpoint. |callback| will be run when the report has | 21 // endpoint. |
| 22 // been sent off (not necessarily after a response has been received). | 22 virtual void ReportInvalidCertificateChain( |
| 23 virtual void ReportInvalidCertificateChain(const std::string& hostname, | 23 const std::string& serialized_report) = 0; |
| 24 const net::SSLInfo& ssl_info) = 0; | |
| 25 }; | 24 }; |
| 26 | 25 |
| 27 #endif // CHROME_BROWSER_SSL_SSL_CERT_REPORTER_H_ | 26 #endif // CHROME_BROWSER_SSL_SSL_CERT_REPORTER_H_ |
| OLD | NEW |