| 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 8c8e6989198803fd015ab6889933404e86050e4b..daf431cbee12b03dd08f6edad25493521d49ed14 100644
|
| --- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.h
|
| +++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.h
|
| @@ -65,6 +65,7 @@ class SafeBrowsingBlockingPage : public SecurityInterstitialPage {
|
| static SafeBrowsingBlockingPage* CreateBlockingPage(
|
| SafeBrowsingUIManager* ui_manager,
|
| content::WebContents* web_contents,
|
| + const GURL& main_frame_url,
|
| const UnsafeResource& unsafe_resource);
|
|
|
| // Shows a blocking page warning the user about phishing/malware for a
|
| @@ -95,12 +96,31 @@ class SafeBrowsingBlockingPage : public SecurityInterstitialPage {
|
| friend class SafeBrowsingBlockingPageTest;
|
| FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest,
|
| ProceedThenDontProceed);
|
| + FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest,
|
| + MalwareReportsDisabled);
|
| + FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest,
|
| + MalwareReportsToggling);
|
| + FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest,
|
| + ExtendedReportingNotShownOnSecurePage);
|
| + FRIEND_TEST_ALL_PREFIXES(
|
| + SafeBrowsingBlockingPageTest,
|
| + ExtendedReportingNotShownOnSecurePageWithSecureSubresource);
|
| + FRIEND_TEST_ALL_PREFIXES(
|
| + SafeBrowsingBlockingPageTest,
|
| + ExtendedReportingNotShownOnSecurePageWithInsecureSubresource);
|
| + FRIEND_TEST_ALL_PREFIXES(
|
| + SafeBrowsingBlockingPageTest,
|
| + ExtendedReportingOnInsecurePageWithSecureSubresource);
|
| + FRIEND_TEST_ALL_PREFIXES(
|
| + SafeBrowsingBlockingPageTest,
|
| + ExtendedReportingNotShownOnSecurePageWithPendingInsecureLoad);
|
|
|
| void UpdateReportingPref(); // Used for the transition from old to new pref.
|
|
|
| // Don't instantiate this class directly, use ShowBlockingPage instead.
|
| SafeBrowsingBlockingPage(SafeBrowsingUIManager* ui_manager,
|
| content::WebContents* web_contents,
|
| + const GURL& main_frame_url,
|
| const UnsafeResourceList& unsafe_resources);
|
|
|
| // SecurityInterstitialPage methods:
|
| @@ -151,6 +171,9 @@ class SafeBrowsingBlockingPage : public SecurityInterstitialPage {
|
| // finishes.
|
| bool is_main_frame_load_blocked_;
|
|
|
| + // The URL of the main frame that caused the warning.
|
| + GURL main_frame_url_;
|
| +
|
| // The index of a navigation entry that should be removed when DontProceed()
|
| // is invoked, -1 if not entry should be removed.
|
| int navigation_entry_index_to_remove_;
|
| @@ -201,6 +224,7 @@ class SafeBrowsingBlockingPageFactory {
|
| virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage(
|
| SafeBrowsingUIManager* ui_manager,
|
| content::WebContents* web_contents,
|
| + const GURL& main_frame_url,
|
| const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0;
|
| };
|
|
|
|
|