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

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

Issue 2950863002: Implement code for Start/Finish threat details collection in WebView. (Closed)
Patch Set: fix comment Created 3 years, 5 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Makes the passed |factory| the factory used to instantiate 70 // Makes the passed |factory| the factory used to instantiate
71 // SafeBrowsingBlockingPage objects. Useful for tests. 71 // SafeBrowsingBlockingPage objects. Useful for tests.
72 static void RegisterFactory(SafeBrowsingBlockingPageFactory* factory) { 72 static void RegisterFactory(SafeBrowsingBlockingPageFactory* factory) {
73 factory_ = factory; 73 factory_ = factory;
74 } 74 }
75 75
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.
81 static bool ShouldReportThreatDetails(SBThreatType threat_type);
82
83 protected: 80 protected:
84 friend class SafeBrowsingBlockingPageFactoryImpl; 81 friend class SafeBrowsingBlockingPageFactoryImpl;
85 friend class SafeBrowsingBlockingPageTest; 82 friend class SafeBrowsingBlockingPageTest;
86 friend class SafeBrowsingBlockingPageBrowserTest; 83 friend class SafeBrowsingBlockingPageBrowserTest;
87 friend class SafeBrowsingBlockingQuietPageFactoryImpl; 84 friend class SafeBrowsingBlockingQuietPageFactoryImpl;
88 friend class SafeBrowsingBlockingQuietPageTest; 85 friend class SafeBrowsingBlockingQuietPageTest;
89 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest, 86 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest,
90 ProceedThenDontProceed); 87 ProceedThenDontProceed);
91 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest, 88 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest,
92 MalwareReportsDisabled); 89 MalwareReportsDisabled);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( 149 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage(
153 BaseUIManager* ui_manager, 150 BaseUIManager* ui_manager,
154 content::WebContents* web_contents, 151 content::WebContents* web_contents,
155 const GURL& main_frame_url, 152 const GURL& main_frame_url,
156 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; 153 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0;
157 }; 154 };
158 155
159 } // namespace safe_browsing 156 } // namespace safe_browsing
160 157
161 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ 158 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_safe_browsing_blocking_page.cc ('k') | chrome/browser/safe_browsing/safe_browsing_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698