| Index: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
|
| diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
|
| index c5b4c449b0d539b87804e0550ea47bfb989e208e..3d0a91dd68567d4f3dd56cc9fb381407d3ecb2cc 100644
|
| --- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
|
| +++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
|
| @@ -146,6 +146,65 @@ void RecordDetailedUserAction(DetailedDecision decision) {
|
| MAX_DETAILED_ACTION);
|
| }
|
|
|
| +class SafeBrowsingBlockingPageV1 : public SafeBrowsingBlockingPage {
|
| + public:
|
| + 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:
|
| + 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);
|
| +};
|
| +
|
| } // namespace
|
|
|
| // static
|
|
|