OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_SSL_EXPECT_CT_REPORTER_H_ |
| 6 #define CHROME_BROWSER_SSL_EXPECT_CT_REPORTER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/net/expect_ct_monitor.h" |
| 11 |
| 12 namespace net { |
| 13 class CertificateReportSender; |
| 14 class TransportSecurityState; |
| 15 class URLRequestContext; |
| 16 } // namespace net |
| 17 |
| 18 // This class monitors for violations of CT policy and sends reports |
| 19 // about failures for sites that have opted in. |
| 20 class ExpectCTReporter : public ExpectCTMonitor { |
| 21 public: |
| 22 ExpectCTReporter(net::URLRequestContext* request_context, |
| 23 net::TransportSecurityState* transport_security_state); |
| 24 ~ExpectCTReporter() override; |
| 25 |
| 26 // ExpectCTMonitor: |
| 27 void OnCTComplianceFailed(net::URLRequest* request) override; |
| 28 |
| 29 private: |
| 30 scoped_ptr<net::CertificateReportSender> report_sender_; |
| 31 net::TransportSecurityState* transport_security_state_; |
| 32 DISALLOW_COPY_AND_ASSIGN(ExpectCTReporter); |
| 33 }; |
| 34 |
| 35 #endif // CHROME_BROWSER_SSL_EXPECT_CT_REPORTER_H_ |
OLD | NEW |