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

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

Issue 15080009: Enable the side-effect free whitelist and use it for local browsing based (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/database_manager.h
===================================================================
--- chrome/browser/safe_browsing/database_manager.h (revision 200384)
+++ chrome/browser/safe_browsing/database_manager.h (working copy)
@@ -147,7 +147,10 @@
Client* client);
// Check if the given url is on the side-effect free whitelist.
- // Can be called on any thread.
+ // Can be called on any thread. Returns false if the check cannot be performed
+ // (e.g. because we are disabled or because of an invalid scheme in the URL).
+ // Otherwise, returns true if the URL is on the whitelist based on matching
+ // the hash prefix only (so there may be false positives).
virtual bool CheckSideEffectFreeWhitelistUrl(const GURL& url);
// Check if the |url| matches any of the full-length hashes from the
« no previous file with comments | « chrome/browser/prerender/prerender_local_predictor.cc ('k') | chrome/browser/safe_browsing/database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698