OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_SSL_CHROME_EXPECT_STAPLE_REPORTER_H_ |
| 6 #define CHROME_BROWSER_SSL_CHROME_EXPECT_STAPLE_REPORTER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "net/http/transport_security_state.h" |
| 10 |
| 11 namespace net { |
| 12 class CertificateReportSender; |
| 13 class URLRequestContext; |
| 14 } // namespace net |
| 15 |
| 16 class ChromeExpectStapleReporter |
| 17 : public net::TransportSecurityState::ExpectStapleReporter { |
| 18 public: |
| 19 explicit ChromeExpectStapleReporter(net::URLRequestContext* request_context); |
| 20 ~ChromeExpectStapleReporter() override; |
| 21 |
| 22 // net::ExpectStapleReporter: |
| 23 void OnExpectStapleFailed(const net::HostPortPair& host_port_pair, |
| 24 const GURL& report_uri, |
| 25 const net::SSLInfo& ssl_info) override; |
| 26 |
| 27 private: |
| 28 std::unique_ptr<net::CertificateReportSender> report_sender_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(ChromeExpectStapleReporter); |
| 31 }; |
| 32 |
| 33 #endif // CHROME_BROWSER_SSL_CHROME_EXPECT_STAPLE_REPORTER_H_ |
OLD | NEW |