OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CHROME_EXPECT_CT_REPORTER_H_ | 5 #ifndef CHROME_BROWSER_SSL_CHROME_EXPECT_CT_REPORTER_H_ |
6 #define CHROME_BROWSER_SSL_CHROME_EXPECT_CT_REPORTER_H_ | 6 #define CHROME_BROWSER_SSL_CHROME_EXPECT_CT_REPORTER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 // can cancel its requests. | 21 // can cancel its requests. |
22 class ChromeExpectCTReporter | 22 class ChromeExpectCTReporter |
23 : public net::TransportSecurityState::ExpectCTReporter { | 23 : public net::TransportSecurityState::ExpectCTReporter { |
24 public: | 24 public: |
25 explicit ChromeExpectCTReporter(net::URLRequestContext* request_context); | 25 explicit ChromeExpectCTReporter(net::URLRequestContext* request_context); |
26 ~ChromeExpectCTReporter() override; | 26 ~ChromeExpectCTReporter() override; |
27 | 27 |
28 // net::ExpectCTReporter: | 28 // net::ExpectCTReporter: |
29 void OnExpectCTFailed(const net::HostPortPair& host_port_pair, | 29 void OnExpectCTFailed(const net::HostPortPair& host_port_pair, |
30 const GURL& report_uri, | 30 const GURL& report_uri, |
31 const net::SSLInfo& ssl_info) override; | 31 const net::X509Certificate* validated_certificate_chain, |
| 32 const net::X509Certificate* served_certificate_chain, |
| 33 const net::SignedCertificateTimestampAndStatusList& |
| 34 signed_certificate_timestamps) override; |
32 | 35 |
33 private: | 36 private: |
34 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, FeatureDisabled); | 37 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, FeatureDisabled); |
35 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, EmptyReportURI); | 38 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, EmptyReportURI); |
36 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, SendReport); | 39 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, SendReport); |
37 | 40 |
38 std::unique_ptr<net::ReportSender> report_sender_; | 41 std::unique_ptr<net::ReportSender> report_sender_; |
39 | 42 |
40 DISALLOW_COPY_AND_ASSIGN(ChromeExpectCTReporter); | 43 DISALLOW_COPY_AND_ASSIGN(ChromeExpectCTReporter); |
41 }; | 44 }; |
42 | 45 |
43 #endif // CHROME_BROWSER_SSL_CHROME_EXPECT_CT_REPORTER_H_ | 46 #endif // CHROME_BROWSER_SSL_CHROME_EXPECT_CT_REPORTER_H_ |
OLD | NEW |