| Index: chrome/browser/managed_mode/managed_mode_url_filter.h
|
| diff --git a/chrome/browser/managed_mode/managed_mode_url_filter.h b/chrome/browser/managed_mode/managed_mode_url_filter.h
|
| index 93adff91e34655e024d950e420149ad10d16065f..ebfe0c336e58276ae28174506653c5adef856deb 100644
|
| --- a/chrome/browser/managed_mode/managed_mode_url_filter.h
|
| +++ b/chrome/browser/managed_mode/managed_mode_url_filter.h
|
| @@ -12,6 +12,7 @@
|
| #include "base/threading/non_thread_safe.h"
|
| #include "base/values.h"
|
| #include "chrome/browser/managed_mode/managed_mode_site_list.h"
|
| +#include "chrome/browser/policy/url_blacklist_manager.h"
|
|
|
| class FilePath;
|
| class GURL;
|
| @@ -56,6 +57,15 @@ class ManagedModeURLFilter : public base::NonThreadSafe {
|
| void SetFromPatterns(const std::vector<std::string>& patterns,
|
| const base::Closure& continuation);
|
|
|
| + // Sets the manual whitelists.
|
| + void SetManualLists(scoped_ptr<ListValue> whitelist,
|
| + scoped_ptr<ListValue> blacklist,
|
| + const base::Closure& continuation);
|
| +
|
| + void AddURLPatternToManualList(const bool isWhitelist,
|
| + const std::string& url,
|
| + const base::Closure& continuation);
|
| +
|
| private:
|
| void SetContents(const base::Closure& callback,
|
| scoped_ptr<Contents> url_matcher);
|
| @@ -64,6 +74,12 @@ class ManagedModeURLFilter : public base::NonThreadSafe {
|
| FilteringBehavior default_behavior_;
|
| scoped_ptr<Contents> contents_;
|
|
|
| + // The |url_manual_list_allow_| blocks all URLs except the ones that are
|
| + // added while the |url_manual_list_block_| blocks only the URLs that are
|
| + // added to it.
|
| + policy::URLBlacklist url_manual_list_allow_;
|
| + policy::URLBlacklist url_manual_list_block_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ManagedModeURLFilter);
|
| };
|
|
|
|
|