Chromium Code Reviews| 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_CHROME_EXPECT_CT_REPORTER_H_ | |
| 6 #define CHROME_BROWSER_SSL_CHROME_EXPECT_CT_REPORTER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "net/http/transport_security_state.h" | |
| 11 | |
| 12 namespace net { | |
| 13 class CertificateReportSender; | |
| 14 class URLRequestContext; | |
| 15 } // namespace net | |
| 16 | |
| 17 // This class monitors for violations of CT policy and sends reports | |
| 18 // about failures for sites that have opted in. | |
|
mmenke
2016/03/07 18:28:08
Mention it must be deleted before the URLRequestCo
estark
2016/03/08 02:36:06
Done.
| |
| 19 class ChromeExpectCTReporter | |
| 20 : public net::TransportSecurityState::ExpectCTReporter { | |
| 21 public: | |
| 22 explicit ChromeExpectCTReporter(net::URLRequestContext* request_context); | |
| 23 ~ChromeExpectCTReporter() override; | |
| 24 | |
| 25 // net::ExpectCTReporter: | |
| 26 void OnExpectCTFailed(const net::HostPortPair& host_port_pair, | |
| 27 const GURL& report_uri, | |
| 28 const net::SSLInfo& ssl_info) override; | |
| 29 | |
| 30 private: | |
| 31 scoped_ptr<net::CertificateReportSender> report_sender_; | |
| 32 DISALLOW_COPY_AND_ASSIGN(ChromeExpectCTReporter); | |
|
mmenke
2016/03/07 18:28:08
nit: Blank line before DISALLOW_COPY_AND_ASSIGN(C
estark
2016/03/08 02:36:06
Done.
| |
| 33 }; | |
| 34 | |
| 35 #endif // CHROME_BROWSER_SSL_CHROME_EXPECT_CT_REPORTER_H_ | |
| OLD | NEW |