| OLD | NEW |
| 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_SSL_CERT_REPORT_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SSL_CERT_REPORT_HELPER_H_ |
| 6 #define CHROME_BROWSER_SSL_CERT_REPORT_HELPER_H_ | 6 #define CHROME_BROWSER_SSL_CERT_REPORT_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 static const char kFinchGroupDontShowDontSend[]; | 37 static const char kFinchGroupDontShowDontSend[]; |
| 38 static const char kFinchParamName[]; | 38 static const char kFinchParamName[]; |
| 39 | 39 |
| 40 CertReportHelper(std::unique_ptr<SSLCertReporter> ssl_cert_reporter, | 40 CertReportHelper(std::unique_ptr<SSLCertReporter> ssl_cert_reporter, |
| 41 content::WebContents* web_contents, | 41 content::WebContents* web_contents, |
| 42 const GURL& request_url, | 42 const GURL& request_url, |
| 43 const net::SSLInfo& ssl_info, | 43 const net::SSLInfo& ssl_info, |
| 44 certificate_reporting::ErrorReport::InterstitialReason | 44 certificate_reporting::ErrorReport::InterstitialReason |
| 45 interstitial_reason, | 45 interstitial_reason, |
| 46 bool overridable, | 46 bool overridable, |
| 47 const base::Time& interstitial_time, |
| 47 security_interstitials::MetricsHelper* metrics_helper); | 48 security_interstitials::MetricsHelper* metrics_helper); |
| 48 | 49 |
| 49 virtual ~CertReportHelper(); | 50 virtual ~CertReportHelper(); |
| 50 | 51 |
| 51 // Populates data that JavaScript code on the interstitial uses to show | 52 // Populates data that JavaScript code on the interstitial uses to show |
| 52 // the checkbox. | 53 // the checkbox. |
| 53 void PopulateExtendedReportingOption(base::DictionaryValue* load_time_data); | 54 void PopulateExtendedReportingOption(base::DictionaryValue* load_time_data); |
| 54 | 55 |
| 55 // Sends a report about an invalid certificate to the | 56 // Sends a report about an invalid certificate to the |
| 56 // server. |user_proceeded| indicates whether the user clicked through | 57 // server. |user_proceeded| indicates whether the user clicked through |
| (...skipping 24 matching lines...) Expand all Loading... |
| 81 content::WebContents* web_contents_; | 82 content::WebContents* web_contents_; |
| 82 // The URL for which this helper sends reports. | 83 // The URL for which this helper sends reports. |
| 83 const GURL request_url_; | 84 const GURL request_url_; |
| 84 // The SSLInfo used in this helper's report. | 85 // The SSLInfo used in this helper's report. |
| 85 const net::SSLInfo ssl_info_; | 86 const net::SSLInfo ssl_info_; |
| 86 // The reason for the interstitial, included in this helper's report. | 87 // The reason for the interstitial, included in this helper's report. |
| 87 certificate_reporting::ErrorReport::InterstitialReason interstitial_reason_; | 88 certificate_reporting::ErrorReport::InterstitialReason interstitial_reason_; |
| 88 // True if the user was given the option to proceed through the | 89 // True if the user was given the option to proceed through the |
| 89 // certificate chain error being reported. | 90 // certificate chain error being reported. |
| 90 bool overridable_; | 91 bool overridable_; |
| 92 // The time at which the interstitial was constructed. |
| 93 const base::Time interstitial_time_; |
| 91 // Helpful for recording metrics about cert reports. | 94 // Helpful for recording metrics about cert reports. |
| 92 security_interstitials::MetricsHelper* metrics_helper_; | 95 security_interstitials::MetricsHelper* metrics_helper_; |
| 93 | 96 |
| 94 DISALLOW_COPY_AND_ASSIGN(CertReportHelper); | 97 DISALLOW_COPY_AND_ASSIGN(CertReportHelper); |
| 95 }; | 98 }; |
| 96 | 99 |
| 97 #endif // CHROME_BROWSER_SSL_CERT_REPORT_HELPER_H_ | 100 #endif // CHROME_BROWSER_SSL_CERT_REPORT_HELPER_H_ |
| OLD | NEW |