| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "net/http/transport_security_state.h" | 10 #include "net/http/transport_security_state.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 explicit ChromeExpectCTReporter(net::URLRequestContext* request_context); | 24 explicit ChromeExpectCTReporter(net::URLRequestContext* request_context); |
| 25 ~ChromeExpectCTReporter() override; | 25 ~ChromeExpectCTReporter() override; |
| 26 | 26 |
| 27 // net::ExpectCTReporter: | 27 // net::ExpectCTReporter: |
| 28 void OnExpectCTFailed(const net::HostPortPair& host_port_pair, | 28 void OnExpectCTFailed(const net::HostPortPair& host_port_pair, |
| 29 const GURL& report_uri, | 29 const GURL& report_uri, |
| 30 const net::SSLInfo& ssl_info) override; | 30 const net::SSLInfo& ssl_info) override; |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, NoCommandLineSwitch); | 33 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, FeatureDisabled); |
| 34 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, EmptyReportURI); | 34 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, EmptyReportURI); |
| 35 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, SendReport); | 35 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, SendReport); |
| 36 | 36 |
| 37 scoped_ptr<net::CertificateReportSender> report_sender_; | 37 scoped_ptr<net::CertificateReportSender> report_sender_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(ChromeExpectCTReporter); | 39 DISALLOW_COPY_AND_ASSIGN(ChromeExpectCTReporter); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 #endif // CHROME_BROWSER_SSL_CHROME_EXPECT_CT_REPORTER_H_ | 42 #endif // CHROME_BROWSER_SSL_CHROME_EXPECT_CT_REPORTER_H_ |
| OLD | NEW |