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

Unified Diff: chrome/browser/profiles/profile_io_data.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: Fixed review comments Created 4 years, 7 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: chrome/browser/profiles/profile_io_data.h
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index 46f218b580b8049e1029fa39f94498834264d910..fa8813191884fecce40fa00062f9a67a59be6ae9 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -25,6 +25,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/storage_partition_descriptor.h"
#include "components/content_settings/core/common/content_settings_types.h"
+#include "components/policy/core/browser/url_blacklist_manager.h"
#include "components/prefs/pref_member.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/resource_context.h"
@@ -244,6 +245,11 @@ class ProfileIOData {
return data_reduction_proxy_io_data_.get();
}
+ // This function is to be used to check if the |url| is defined in
+ // blacklist or whitelist policy.
+ virtual policy::URLBlacklist::URLBlacklistState GetURLBlacklistState(
+ const GURL& url) const;
+
protected:
// A URLRequestContext for media that owns its HTTP factory, to ensure
// it is deleted.

Powered by Google App Engine
This is Rietveld 408576698