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

Unified Diff: chrome/browser/extensions/activity_log/ad_network_database.h

Issue 242303002: Add implementation for Ad Networks Database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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/extensions/activity_log/ad_network_database.h
diff --git a/chrome/browser/extensions/activity_log/ad_network_database.h b/chrome/browser/extensions/activity_log/ad_network_database.h
index a2e349bb521cc6c7a538b5a2fbb0a063352d6c49..483f2b3d2dcbdefac97011616e21e38a3540ce06 100644
--- a/chrome/browser/extensions/activity_log/ad_network_database.h
+++ b/chrome/browser/extensions/activity_log/ad_network_database.h
@@ -20,6 +20,11 @@ class AdNetworkDatabase {
static const AdNetworkDatabase* Get();
static void SetForTesting(scoped_ptr<AdNetworkDatabase> database);
+ // Returns true if the database is enabled (is ready to properly detect
+ // ad networks).
+ virtual bool IsEnabled() const = 0;
+
+ // Returns true if the url is in the list of known ad networks.
virtual bool IsAdNetwork(const GURL& url) const = 0;
};

Powered by Google App Engine
This is Rietveld 408576698