Index: chrome/browser/safe_browsing/safe_browsing_blocking_page.h |
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page.h b/chrome/browser/safe_browsing/safe_browsing_blocking_page.h |
index eccd1a020b50c0fc395a455af3a8a49e10a73bb4..51ec776e849d6b332f71e320af78f2aaf063fdf4 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.h |
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.h |
@@ -82,12 +82,11 @@ class SafeBrowsingBlockingPage : public content::InterstitialPageDelegate { |
virtual void OnDontProceed() OVERRIDE; |
protected: |
+ template <class TestSBInterstitialPage> |
friend class SafeBrowsingBlockingPageTest; |
+ template <class TestSBInterstitialPage> |
FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest, |
ProceedThenDontProceed); |
- friend class SafeBrowsingBlockingPageV2Test; |
- FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageV2Test, |
- ProceedThenDontProceed); |
void SetReportingPreference(bool report); |
void UpdateReportingPref(); // Used for the transition from old to new pref. |
@@ -106,8 +105,10 @@ class SafeBrowsingBlockingPage : public content::InterstitialPageDelegate { |
return interstitial_page_; |
} |
+ template <class TestSBInterstitialPage> |
FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest, |
MalwareReportsTransitionDisabled); |
+ template <class TestSBInterstitialPage> |
FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest, |
MalwareReportsToggling); |
@@ -286,6 +287,24 @@ class SafeBrowsingBlockingPageV2 : public SafeBrowsingBlockingPage { |
DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPageV2); |
}; |
+class SafeBrowsingBlockingPageV3 : public SafeBrowsingBlockingPage { |
+ public: |
+ SafeBrowsingBlockingPageV3(SafeBrowsingUIManager* ui_manager, |
+ content::WebContents* web_contents, |
+ const UnsafeResourceList& unsafe_resources); |
+ |
+ // InterstitialPageDelegate method: |
+ virtual std::string GetHTMLContents() OVERRIDE; |
+ |
+ private: |
+ // Fills the passed dictionary with the values to be passed to the template |
+ // when creating the HTML. |
+ void PopulateMalwareLoadTimeData(base::DictionaryValue* load_time_data); |
+ void PopulatePhishingLoadTimeData(base::DictionaryValue* load_time_data); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPageV3); |
+}; |
+ |
// Factory for creating SafeBrowsingBlockingPage. Useful for tests. |
class SafeBrowsingBlockingPageFactory { |
public: |