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 98e8e197eeb6f766f42631fe9c890f1764e0ca36..1b3710d0b6a212bd26d37ddfcbbd53a5bdee9e0a 100644 |
| --- a/chrome/browser/interstitials/security_interstitial_page.h |
| +++ b/chrome/browser/interstitials/security_interstitial_page.h |
| @@ -63,4 +63,35 @@ class SecurityInterstitialPage : public content::InterstitialPageDelegate { |
| DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialPage); |
| }; |
| +class SecurityInterstitialPageWithExtendedReporting |
| + : public SecurityInterstitialPage { |
| + public: |
| + SecurityInterstitialPageWithExtendedReporting( |
| + content::WebContents* web_contents, |
| + const GURL& url); |
| + |
| + protected: |
| + // Record the user's preference for reporting information about |
| + // malware and SSL errors. |
| + void SetReportingPreference(bool report); |
| + |
| + // Fills the passed dictionary with the values to be passed to the template |
| + // when creating the HTML. |
| + virtual void PopulateExtendedReportingOption( |
| + base::DictionaryValue* load_time_data) = 0; |
| + |
| + // Returns the boolean value of the given |pref| from the PrefService of the |
| + // Profile associated with |web_contents_|. |
| + bool IsPrefEnabled(const char* pref); |
| +}; |
| + |
| +namespace { |
|
felt
2015/02/18 04:16:29
hmm, I'm not sure that this belongs here. normally
estark
2015/02/18 05:22:44
Oh, ok, I see. Based on //url/url_constants.h, I l
|
| +// Constants used to communicate with the JavaScript. |
| +const char kBoxChecked[] = "boxchecked"; |
| +const char kDisplayCheckBox[] = "displaycheckbox"; |
| +const char kPrivacyLinkHtml[] = |
| + "<a id=\"privacy-link\" href=\"\" onclick=\"sendCommand('showPrivacy'); " |
| + "return false;\" onmousedown=\"return false;\">%s</a>"; |
| +} |
| + |
| #endif // CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_ |