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

Side by Side Diff: chrome/browser/net/certificate_error_reporter.h

Issue 1134283003: Add HTTP certificate report URL with Finch gate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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/net/certificate_error_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 2015 The Chromium Authors. All rights reserved. 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 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_NET_CERTIFICATE_ERROR_REPORTER_H_ 5 #ifndef CHROME_BROWSER_NET_CERTIFICATE_ERROR_REPORTER_H_
6 #define CHROME_BROWSER_NET_CERTIFICATE_ERROR_REPORTER_H_ 6 #define CHROME_BROWSER_NET_CERTIFICATE_ERROR_REPORTER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "net/url_request/url_request.h" 13 #include "net/url_request/url_request.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace net { 16 namespace net {
17 class URLRequestContext; 17 class URLRequestContext;
18 class SSLInfo; 18 class SSLInfo;
19 } 19 }
20 20
21 namespace chrome_browser_net { 21 namespace chrome_browser_net {
22 22
23 class EncryptedCertLoggerRequest; 23 class EncryptedCertLoggerRequest;
24 24
25 // Constants for the Finch trial that controls whether the
26 // CertificateErrorReporter supports HTTP uploads.
27 extern const char kHttpCertificateUploadExperiment[];
28 extern const char kHttpCertificateUploadGroup[];
29
25 // Provides functionality for sending reports about invalid SSL 30 // Provides functionality for sending reports about invalid SSL
26 // certificate chains to a report collection server. 31 // certificate chains to a report collection server.
27 class CertificateErrorReporter : public net::URLRequest::Delegate { 32 class CertificateErrorReporter : public net::URLRequest::Delegate {
28 public: 33 public:
29 // These represent the types of reports that can be sent. 34 // These represent the types of reports that can be sent.
30 enum ReportType { 35 enum ReportType {
31 // A report of a certificate chain that failed a certificate pinning 36 // A report of a certificate chain that failed a certificate pinning
32 // check. 37 // check.
33 REPORT_TYPE_PINNING_VIOLATION, 38 REPORT_TYPE_PINNING_VIOLATION,
34 // A report for an invalid certificate chain that is being sent for 39 // A report for an invalid certificate chain that is being sent for
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 116
112 const uint8* server_public_key_; 117 const uint8* server_public_key_;
113 const uint32 server_public_key_version_; 118 const uint32 server_public_key_version_;
114 119
115 DISALLOW_COPY_AND_ASSIGN(CertificateErrorReporter); 120 DISALLOW_COPY_AND_ASSIGN(CertificateErrorReporter);
116 }; 121 };
117 122
118 } // namespace chrome_browser_net 123 } // namespace chrome_browser_net
119 124
120 #endif // CHROME_BROWSER_NET_CERTIFICATE_ERROR_REPORTER_H_ 125 #endif // CHROME_BROWSER_NET_CERTIFICATE_ERROR_REPORTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/certificate_error_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698