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

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

Issue 2850033002: Check Expect-CT at connection setup (Closed)
Patch Set: fix comment typo Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ssl/chrome_expect_ct_reporter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 // can cancel its requests. 21 // can cancel its requests.
22 class ChromeExpectCTReporter 22 class ChromeExpectCTReporter
23 : public net::TransportSecurityState::ExpectCTReporter { 23 : public net::TransportSecurityState::ExpectCTReporter {
24 public: 24 public:
25 explicit ChromeExpectCTReporter(net::URLRequestContext* request_context); 25 explicit ChromeExpectCTReporter(net::URLRequestContext* request_context);
26 ~ChromeExpectCTReporter() override; 26 ~ChromeExpectCTReporter() override;
27 27
28 // net::ExpectCTReporter: 28 // net::ExpectCTReporter:
29 void OnExpectCTFailed(const net::HostPortPair& host_port_pair, 29 void OnExpectCTFailed(const net::HostPortPair& host_port_pair,
30 const GURL& report_uri, 30 const GURL& report_uri,
31 const net::SSLInfo& ssl_info) override; 31 const net::X509Certificate* validated_certificate_chain,
32 const net::X509Certificate* served_certificate_chain,
33 const net::SignedCertificateTimestampAndStatusList&
34 signed_certificate_timestamps) override;
32 35
33 private: 36 private:
34 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, FeatureDisabled); 37 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, FeatureDisabled);
35 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, EmptyReportURI); 38 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, EmptyReportURI);
36 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, SendReport); 39 FRIEND_TEST_ALL_PREFIXES(ChromeExpectCTReporterTest, SendReport);
37 40
38 std::unique_ptr<net::ReportSender> report_sender_; 41 std::unique_ptr<net::ReportSender> report_sender_;
39 42
40 DISALLOW_COPY_AND_ASSIGN(ChromeExpectCTReporter); 43 DISALLOW_COPY_AND_ASSIGN(ChromeExpectCTReporter);
41 }; 44 };
42 45
43 #endif // CHROME_BROWSER_SSL_CHROME_EXPECT_CT_REPORTER_H_ 46 #endif // CHROME_BROWSER_SSL_CHROME_EXPECT_CT_REPORTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ssl/chrome_expect_ct_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698