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

Unified Diff: components/policy/core/browser/url_blacklist_manager.h

Issue 1692503002: Functionality to allow blacklist and whitelist of custom schemes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another variable set as const Created 4 years, 9 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: 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).

Powered by Google App Engine
This is Rietveld 408576698