summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/safe_browsing_database.h
diff options
context:
space:
mode:
authorgrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-13 21:44:30 +0000
committergrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-13 21:44:30 +0000
commitff17bbb14cce131bfca9e60320e59c6f6a809b8b (patch)
tree80f29a44dd4a59c2f490839eef34f6ef414c2133 /chrome/browser/safe_browsing/safe_browsing_database.h
parent5ed2f818e52dca5319c37859004ed17a7c3caed2 (diff)
downloadchromium_src-ff17bbb14cce131bfca9e60320e59c6f6a809b8b.zip
chromium_src-ff17bbb14cce131bfca9e60320e59c6f6a809b8b.tar.gz
chromium_src-ff17bbb14cce131bfca9e60320e59c6f6a809b8b.tar.bz2
Expose the presence of the safebrowsing CSD whitelist killswitch.
BUG=none R=mattm@chromium.org Review URL: https://codereview.chromium.org/279123004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270217 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing/safe_browsing_database.h')
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_database.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_database.h b/chrome/browser/safe_browsing/safe_browsing_database.h
index c6fbad55..73b6564 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database.h
+++ b/chrome/browser/safe_browsing/safe_browsing_database.h
@@ -189,6 +189,10 @@ class SafeBrowsingDatabase {
// in the csd whitelist.
virtual bool IsMalwareIPMatchKillSwitchOn() = 0;
+ // Returns true if the whitelist killswitch URL is present in the csd
+ // whitelist.
+ virtual bool IsCsdWhitelistKillSwitchOn() = 0;
+
// The name of the bloom-filter file for the given database file.
// NOTE(shess): OBSOLETE. Present for deleting stale files.
static base::FilePath BloomFilterForFilename(
@@ -328,6 +332,9 @@ class SafeBrowsingDatabaseNew : public SafeBrowsingDatabase {
// Returns the value of malware_kill_switch_;
virtual bool IsMalwareIPMatchKillSwitchOn() OVERRIDE;
+ // Returns true if the CSD whitelist has everything whitelisted.
+ virtual bool IsCsdWhitelistKillSwitchOn() OVERRIDE;
+
private:
friend class SafeBrowsingDatabaseTest;
FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseTest, HashCaching);