Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: chrome/browser/ssl/chrome_expect_ct_reporter.h

Issue 1579063002: Implement a skeleton version of Expect CT reports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move expect ct into TransportSecurityState Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698