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

Unified Diff: android_webview/lib/main/webview_jni_onload.cc

Issue 1890203002: Implement Web Restrictions in WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: android_webview/lib/main/webview_jni_onload.cc
diff --git a/android_webview/lib/main/webview_jni_onload.cc b/android_webview/lib/main/webview_jni_onload.cc
index 6b7847fe1befb7351a55b18f9f23d1031c8fce5f..baab38884df47304d383ae350f20d07b40628f00 100644
--- a/android_webview/lib/main/webview_jni_onload.cc
+++ b/android_webview/lib/main/webview_jni_onload.cc
@@ -14,6 +14,8 @@
#include "components/external_video_surface/component_jni_registrar.h"
#include "components/navigation_interception/component_jni_registrar.h"
#include "components/web_contents_delegate_android/component_jni_registrar.h"
+#include "components/web_restrictions/browser/web_restictions_client_result.h"
+#include "components/web_restrictions/browser/web_restrictions_client.h"
#include "content/public/app/content_jni_onload.h"
#include "content/public/app/content_main.h"
#include "url/url_util.h"
@@ -32,6 +34,10 @@ static base::android::RegistrationMethod
navigation_interception::RegisterNavigationInterceptionJni },
{ "WebContentsDelegateAndroid",
web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni },
+ { "WebRestrictionsClient",
+ web_restrictions::WebRestrictionsClient::Register},
+ { "WebRestrictionsResult",
+ web_restrictions::WebRestrictionsClientResult::Register},
};
bool RegisterJNI(JNIEnv* env) {

Powered by Google App Engine
This is Rietveld 408576698