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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page.h

Issue 2854263003: Add quiet safe browsing interstitial for WebView (Closed)
Patch Set: Fix unit test Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Classes for managing the SafeBrowsing interstitial pages. 5 // Classes for managing the SafeBrowsing interstitial pages.
6 // 6 //
7 // When a user is about to visit a page the SafeBrowsing system has deemed to 7 // When a user is about to visit a page the SafeBrowsing system has deemed to
8 // be malicious, either as malware or a phishing page, we show an interstitial 8 // be malicious, either as malware or a phishing page, we show an interstitial
9 // page with some options (go back, continue) to give the user a chance to avoid 9 // page with some options (go back, continue) to give the user a chance to avoid
10 // the harmful page. 10 // the harmful page.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // InterstitialPageDelegate method: 76 // InterstitialPageDelegate method:
77 void OverrideRendererPrefs(content::RendererPreferences* prefs) override; 77 void OverrideRendererPrefs(content::RendererPreferences* prefs) override;
78 content::InterstitialPageDelegate::TypeID GetTypeForTesting() const override; 78 content::InterstitialPageDelegate::TypeID GetTypeForTesting() const override;
79 79
80 // Checks the threat type to decide if we should report ThreatDetails. 80 // Checks the threat type to decide if we should report ThreatDetails.
81 static bool ShouldReportThreatDetails(SBThreatType threat_type); 81 static bool ShouldReportThreatDetails(SBThreatType threat_type);
82 82
83 protected: 83 protected:
84 friend class SafeBrowsingBlockingPageFactoryImpl; 84 friend class SafeBrowsingBlockingPageFactoryImpl;
85 friend class SafeBrowsingBlockingPageTest; 85 friend class SafeBrowsingBlockingPageTest;
86 friend class SafeBrowsingBlockingQuietPageFactoryImpl;
87 friend class SafeBrowsingBlockingQuietPageTest;
86 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest, 88 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest,
87 ProceedThenDontProceed); 89 ProceedThenDontProceed);
88 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest, 90 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest,
89 MalwareReportsDisabled); 91 MalwareReportsDisabled);
90 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest, 92 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest,
91 MalwareReportsToggling); 93 MalwareReportsToggling);
92 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest, 94 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest,
93 ExtendedReportingNotShownOnSecurePage); 95 ExtendedReportingNotShownOnSecurePage);
94 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest, 96 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest,
95 MalwareReportsTransitionDisabled); 97 MalwareReportsTransitionDisabled);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( 152 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage(
151 BaseUIManager* ui_manager, 153 BaseUIManager* ui_manager,
152 content::WebContents* web_contents, 154 content::WebContents* web_contents,
153 const GURL& main_frame_url, 155 const GURL& main_frame_url,
154 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; 156 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0;
155 }; 157 };
156 158
157 } // namespace safe_browsing 159 } // namespace safe_browsing
158 160
159 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ 161 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698