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..862867d1b1194c77f0104369902e16e61f59f7cb 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) const; |
|
bartfab (slow)
2016/03/10 13:49:41
Nit: Indent.
Thiemo Nagel
2016/03/10 14:37:26
Please break the line after the return value. Tha
|
| + |
| // 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( |
|
Thiemo Nagel
2016/03/10 14:37:26
Same as above.
|
| + const GURL& url) 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). |