Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_ | 5 #ifndef NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_ |
| 6 #define NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_ | 6 #define NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| 11 | 11 |
| 12 class SSLInfo; | 12 class SSLInfo; |
| 13 | 13 |
| 14 // FraudulentCertificateReporter is an interface for asynchronously | 14 // FraudulentCertificateReporter is an interface for asynchronously |
| 15 // reporting certificate chains that fail the certificate pinning | 15 // reporting certificate chains that fail the certificate pinning |
| 16 // check. | 16 // check. |
| 17 class FraudulentCertificateReporter { | 17 class FraudulentCertificateReporter { |
| 18 public: | 18 public: |
| 19 enum ReportType { REPORT_TYPE_PIN_VIOLATION, REPORT_TYPE_EXTENDED_REPORTING }; | |
|
Ryan Sleevi
2015/02/25 23:07:49
Document
estark
2015/02/26 07:01:27
Done.
| |
| 20 | |
| 19 virtual ~FraudulentCertificateReporter() {} | 21 virtual ~FraudulentCertificateReporter() {} |
| 20 | 22 |
| 21 // Sends a report to the report collection server containing the |ssl_info| | 23 // Sends a report to the report collection server containing the |ssl_info| |
| 22 // associated with a connection to |hostname|. | 24 // associated with a connection to |hostname|. |
| 23 virtual void SendReport(const std::string& hostname, | 25 virtual void SendReport(ReportType type, |
|
Ryan Sleevi
2015/02/25 23:07:49
Update documentation
estark
2015/02/26 07:01:27
Done.
| |
| 26 const std::string& hostname, | |
| 24 const SSLInfo& ssl_info) = 0; | 27 const SSLInfo& ssl_info) = 0; |
| 25 }; | 28 }; |
| 26 | 29 |
| 27 } // namespace net | 30 } // namespace net |
| 28 | 31 |
| 29 #endif // NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_ | 32 #endif // NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_ |
| 30 | |
| OLD | NEW |