Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2044)

Unified Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page.h

Issue 326673002: Put SafeBrowsingBlockingPageV* classes in anonymous namespace Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_blocking_page.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43ac464b57d8d2d4d8769e630e575e4fd5cf2d53..a11aabef33bc67ae065e3ff87c13e45c9c10d9ff 100644
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.h
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.h
@@ -219,67 +219,6 @@ class SafeBrowsingBlockingPage : public content::InterstitialPageDelegate {
DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPage);
};
-class SafeBrowsingBlockingPageV1 : public SafeBrowsingBlockingPage {
- public:
- // Don't instanciate this class directly, use ShowBlockingPage instead.
- SafeBrowsingBlockingPageV1(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 strings passed to JS Template when
- // creating the HTML.
- void PopulateMultipleThreatStringDictionary(base::DictionaryValue* strings);
- void PopulateMalwareStringDictionary(base::DictionaryValue* strings);
- void PopulatePhishingStringDictionary(base::DictionaryValue* strings);
-
- // A helper method used by the Populate methods above used to populate common
- // fields.
- void PopulateStringDictionary(base::DictionaryValue* strings,
- const base::string16& title,
- const base::string16& headline,
- const base::string16& description1,
- const base::string16& description2,
- const base::string16& description3);
-
- DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPageV1);
-};
-
-class SafeBrowsingBlockingPageV2 : public SafeBrowsingBlockingPage {
- public:
- // Don't instanciate this class directly, use ShowBlockingPage instead.
- SafeBrowsingBlockingPageV2(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 strings passed to JS Template when
- // creating the HTML.
- void PopulateMultipleThreatStringDictionary(base::DictionaryValue* strings);
- void PopulateMalwareStringDictionary(base::DictionaryValue* strings);
- void PopulatePhishingStringDictionary(base::DictionaryValue* strings);
-
- // A helper method used by the Populate methods above used to populate common
- // fields.
- void PopulateStringDictionary(base::DictionaryValue* strings,
- const base::string16& title,
- const base::string16& headline,
- const base::string16& description1,
- const base::string16& description2,
- const base::string16& description3);
-
- // For the FieldTrial: this contains the name of the condition.
- std::string trialCondition_;
-
- DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPageV2);
-};
-
// Factory for creating SafeBrowsingBlockingPage. Useful for tests.
class SafeBrowsingBlockingPageFactory {
public:
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698