| 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);
|
| };
|
|
|
|
|