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

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

Issue 2270283002: Downgrade security state after user clicks through SB interstitial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove logging statements Created 4 years, 4 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
Index: chrome/browser/safe_browsing/ui_manager.h
diff --git a/chrome/browser/safe_browsing/ui_manager.h b/chrome/browser/safe_browsing/ui_manager.h
index e406f8f7a514cb44c01050c0122189fa2c5ee365..82b2c63a0ed7cead36e26c248d0a9d9fccb8eb90 100644
--- a/chrome/browser/safe_browsing/ui_manager.h
+++ b/chrome/browser/safe_browsing/ui_manager.h
@@ -125,9 +125,15 @@ class SafeBrowsingUIManager
// chain). Otherwise, |original_url| = |url|.
virtual void DisplayBlockingPage(const UnsafeResource& resource);
+ // A wrapper method for IsUrlWhitelistedForWebContents, for convenience.
+ bool IsWhitelisted(const UnsafeResource& resource);
+
// Returns true if we already displayed an interstitial for that top-level
// site in a given WebContents. Called on the UI thread.
- bool IsWhitelisted(const UnsafeResource& resource);
+ bool IsUrlWhitelistedForWebContents(const GURL& url,
+ bool is_subresource,
+ content::NavigationEntry* entry,
+ content::WebContents* web_contents);
// The blocking page on the UI thread has completed.
void OnBlockingPageDone(const std::vector<UnsafeResource>& resources,
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc ('k') | chrome/browser/safe_browsing/ui_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698