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

Unified Diff: android_webview/browser/aw_browser_context.h

Issue 1890203002: Implement Web Restrictions in WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix final nits Created 4 years, 4 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
« no previous file with comments | « android_webview/browser/DEPS ('k') | android_webview/browser/aw_browser_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_browser_context.h
diff --git a/android_webview/browser/aw_browser_context.h b/android_webview/browser/aw_browser_context.h
index 718ecb810523f2e3ed9ff8d08182c5e415d68470..f684a113f6462cde330512a22ade8f221c2c6df1 100644
--- a/android_webview/browser/aw_browser_context.h
+++ b/android_webview/browser/aw_browser_context.h
@@ -15,7 +15,9 @@
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "components/prefs/pref_change_registrar.h"
#include "components/visitedlink/browser/visitedlink_delegate.h"
+#include "components/web_restrictions/browser/web_restrictions_client.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/content_browser_client.h"
#include "net/url_request/url_request_job_factory.h"
@@ -51,6 +53,7 @@ namespace prefs {
// Used for Kerberos authentication.
extern const char kAuthAndroidNegotiateAccountType[];
extern const char kAuthServerWhitelist[];
+extern const char kWebRestrictionsAuthority[];
} // namespace prefs
@@ -84,6 +87,7 @@ class AwBrowserContext : public content::BrowserContext,
AwMessagePortService* GetMessagePortService();
policy::URLBlacklistManager* GetURLBlacklistManager();
+ web_restrictions::WebRestrictionsClient* GetWebRestrictionProvider();
// content::BrowserContext implementation.
std::unique_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate(
@@ -116,6 +120,8 @@ class AwBrowserContext : public content::BrowserContext,
private:
void InitUserPrefService();
+ void OnWebRestrictionsAuthorityChanged();
+
// Delay, in milliseconds, before removing the legacy cache dir.
// This is non-const for testing purposes.
@@ -141,6 +147,9 @@ class AwBrowserContext : public content::BrowserContext,
std::unique_ptr<AwSSLHostStateDelegate> ssl_host_state_delegate_;
std::unique_ptr<content::PermissionManager> permission_manager_;
+ std::unique_ptr<web_restrictions::WebRestrictionsClient>
+ web_restriction_provider_;
+ PrefChangeRegistrar pref_change_registrar_;
DISALLOW_COPY_AND_ASSIGN(AwBrowserContext);
};
« no previous file with comments | « android_webview/browser/DEPS ('k') | android_webview/browser/aw_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698