Chromium Code Reviews| Index: chrome/browser/net/certificate_error_reporter.h |
| diff --git a/chrome/browser/net/certificate_error_reporter.h b/chrome/browser/net/certificate_error_reporter.h |
| index 5463d5a74bd69d6286bbb8cbe1115fc78e8bcd41..a5cf5851ed375aed60039a44a9981abdd7825cda 100644 |
| --- a/chrome/browser/net/certificate_error_reporter.h |
| +++ b/chrome/browser/net/certificate_error_reporter.h |
| @@ -22,6 +22,8 @@ namespace chrome_browser_net { |
| class CertLoggerRequest; |
| +extern const char kExtendedReportingUploadUrl[]; |
|
mattm
2015/03/25 00:19:14
can be removed too.
estark
2015/03/25 00:41:23
Done.
|
| + |
| // Provides functionality for sending reports about invalid SSL |
| // certificate chains to a report collection server. |
| class CertificateErrorReporter : public net::URLRequest::Delegate { |
| @@ -36,15 +38,21 @@ class CertificateErrorReporter : public net::URLRequest::Delegate { |
| REPORT_TYPE_EXTENDED_REPORTING |
| }; |
| + // Represents whether or not to send cookies along with reports sent |
| + // to the server. |
| + enum CookiesPreference { SEND_COOKIES, DO_NOT_SEND_COOKIES }; |
| + |
| // Create a certificate error reporter that will send certificate |
| // error reports to |upload_url|, using |request_context| as the |
| - // context for the reports. |
| + // context for the reports. |cookies_preference| controls whether |
| + // cookies will be sent along with the reports. |
| CertificateErrorReporter(net::URLRequestContext* request_context, |
| - const GURL& upload_url); |
| + const GURL& upload_url, |
| + CookiesPreference cookies_preference); |
| ~CertificateErrorReporter() override; |
| - // Construct, serialize, and send a certificate reporter to the report |
| + // Construct, serialize, and send a certificate report to the report |
| // collection server containing the |ssl_info| associated with a |
| // connection to |hostname|. |
| virtual void SendReport(ReportType type, |
| @@ -79,6 +87,8 @@ class CertificateErrorReporter : public net::URLRequest::Delegate { |
| // Owns the contained requests. |
| std::set<net::URLRequest*> inflight_requests_; |
| + CookiesPreference cookies_preference_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(CertificateErrorReporter); |
| }; |