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

Unified Diff: chrome/browser/supervised_user/supervised_user_url_filter.h

Issue 537993002: Supervised users: Prototype of static client-side host blacklist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: is_sorted is Cpp11 (yay...) Created 6 years, 3 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/supervised_user/supervised_user_url_filter.h
diff --git a/chrome/browser/supervised_user/supervised_user_url_filter.h b/chrome/browser/supervised_user/supervised_user_url_filter.h
index 64ef42b91bc3d01d70cf319eedf6cfc5d39cbf40..ceaf9ea64e3e688832792542be8afd0f61d5b3e2 100644
--- a/chrome/browser/supervised_user/supervised_user_url_filter.h
+++ b/chrome/browser/supervised_user/supervised_user_url_filter.h
@@ -16,6 +16,7 @@
#include "chrome/browser/supervised_user/supervised_users.h"
class GURL;
+class SupervisedUserBlacklist;
// This class manages the filtering behavior for a given URL, i.e. it tells
// callers if a given URL should be allowed, blocked or warned about. It uses
@@ -84,11 +85,13 @@ class SupervisedUserURLFilter
// Sets the filtering behavior for pages not on a list (default is ALLOW).
void SetDefaultFilteringBehavior(FilteringBehavior behavior);
- // Asynchronously loads the specified site lists from disk and updates the
+ // Asynchronously loads the specified site lists and updates the
// filter to recognize each site on them.
- // Calls |continuation| when the filter has been updated.
void LoadWhitelists(ScopedVector<SupervisedUserSiteList> site_lists);
+ // Sets the static blacklist of blocked hosts.
+ void SetBlacklist(SupervisedUserBlacklist* blacklist);
+
// Set the list of matched patterns to the passed in list.
// This method is only used for testing.
void SetFromPatterns(const std::vector<std::string>& patterns);
@@ -121,6 +124,9 @@ class SupervisedUserURLFilter
// (false).
std::map<std::string, bool> host_map_;
+ // Not owned.
+ SupervisedUserBlacklist* blacklist_;
+
DISALLOW_COPY_AND_ASSIGN(SupervisedUserURLFilter);
};

Powered by Google App Engine
This is Rietveld 408576698