Chromium Code Reviews| Index: chrome/browser/interstitials/security_interstitial_page.h |
| diff --git a/chrome/browser/interstitials/security_interstitial_page.h b/chrome/browser/interstitials/security_interstitial_page.h |
| index 0e96ebc1190c7db66f75010513309a2b5c76747b..4aca763128a02adc6b797f7dd5d5af8d5157dd68 100644 |
| --- a/chrome/browser/interstitials/security_interstitial_page.h |
| +++ b/chrome/browser/interstitials/security_interstitial_page.h |
| @@ -5,6 +5,7 @@ |
| #ifndef CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_ |
| #define CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_ |
| +#include "base/callback.h" |
|
Ryan Sleevi
2015/03/25 04:49:45
Unused?
estark
2015/03/25 05:34:33
Done.
|
| #include "base/strings/string16.h" |
| #include "content/public/browser/interstitial_page_delegate.h" |
| #include "url/gurl.h" |
| @@ -18,6 +19,16 @@ class InterstitialPage; |
| class WebContents; |
| } |
| +namespace interstitials { |
| +// Constants used to communicate with the JavaScript. |
| +extern const char kBoxChecked[]; |
| +extern const char kDisplayCheckBox[]; |
| +extern const char kOptInLink[]; |
| +extern const char kPrivacyLinkHtml[]; |
| +} |
| + |
| +class SecurityInterstitialMetricsHelper; |
| + |
| class SecurityInterstitialPage : public content::InterstitialPageDelegate { |
| public: |
| // These represent the commands sent from the interstitial JavaScript. |
| @@ -69,6 +80,19 @@ class SecurityInterstitialPage : public content::InterstitialPageDelegate { |
| content::WebContents* web_contents() const; |
| GURL request_url() const; |
| + // Record the user's preference for reporting information about |
| + // malware and SSL errors. |
| + void SetReportingPreference(bool report); |
| + |
| + // Returns the boolean value of the given |pref| from the PrefService of the |
| + // Profile associated with |web_contents_|. |
| + bool IsPrefEnabled(const char* pref); |
| + |
| + protected: |
| + void OpenExtendedReportingPrivacyPolicy(); |
| + |
| + scoped_ptr<SecurityInterstitialMetricsHelper> metrics_helper_; |
| + |
| private: |
| content::WebContents* web_contents_; |
| const GURL request_url_; |