Chromium Code Reviews| Index: components/policy/core/browser/url_blacklist_manager.h |
| diff --git a/components/policy/core/browser/url_blacklist_manager.h b/components/policy/core/browser/url_blacklist_manager.h |
| index 23e6734db64a99e43dd0ee3ca3cc35503d857ae4..92e6a42fb2a081b58789ddf660017329b8711374 100644 |
| --- a/components/policy/core/browser/url_blacklist_manager.h |
| +++ b/components/policy/core/browser/url_blacklist_manager.h |
| @@ -21,6 +21,7 @@ |
| #include "base/prefs/pref_change_registrar.h" |
| #include "components/policy/policy_export.h" |
| #include "components/url_matcher/url_matcher.h" |
| +#include "net/base/network_delegate.h" |
| #include "url/gurl.h" |
| class PrefService; |
| @@ -62,6 +63,9 @@ class POLICY_EXPORT URLBlacklist { |
| // Returns true if the URL is blocked. |
| bool IsURLBlocked(const GURL& url) const; |
| + net::NetworkDelegate::URLBlacklistState GetURLBlacklistState(const GURL& url) |
|
Thiemo Nagel
2016/03/08 18:44:35
I'd suggest to break the line after the opening br
|
| + const; |
| + |
| // Returns the number of items in the list. |
| size_t Size() const; |
| @@ -160,6 +164,9 @@ class POLICY_EXPORT URLBlacklistManager { |
| // from the IO thread. |
| bool IsURLBlocked(const GURL& url) const; |
| + net::NetworkDelegate::URLBlacklistState GetURLBlacklistState(const GURL& url) |
|
Thiemo Nagel
2016/03/08 18:44:35
Same as above.
|
| + const; |
| + |
| // Returns true if a request for |url| is blocked by the current blacklist. |
| // |
| // Should only be called for requests for frames (Main frames or subframes). |