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

Side by Side Diff: android_webview/native/android_webview_jni_registrar.cc

Issue 239793002: Handle media access permission request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "android_webview/native/android_webview_jni_registrar.h" 5 #include "android_webview/native/android_webview_jni_registrar.h"
6 6
7 #include "android_webview/native/android_protocol_handler.h" 7 #include "android_webview/native/android_protocol_handler.h"
8 #include "android_webview/native/aw_autofill_manager_delegate.h" 8 #include "android_webview/native/aw_autofill_manager_delegate.h"
9 #include "android_webview/native/aw_contents.h" 9 #include "android_webview/native/aw_contents.h"
10 #include "android_webview/native/aw_contents_client_bridge.h" 10 #include "android_webview/native/aw_contents_client_bridge.h"
11 #include "android_webview/native/aw_contents_io_thread_client_impl.h" 11 #include "android_webview/native/aw_contents_io_thread_client_impl.h"
12 #include "android_webview/native/aw_dev_tools_server.h" 12 #include "android_webview/native/aw_dev_tools_server.h"
13 #include "android_webview/native/aw_form_database.h" 13 #include "android_webview/native/aw_form_database.h"
14 #include "android_webview/native/aw_http_auth_handler.h" 14 #include "android_webview/native/aw_http_auth_handler.h"
15 #include "android_webview/native/aw_pdf_exporter.h" 15 #include "android_webview/native/aw_pdf_exporter.h"
16 #include "android_webview/native/aw_picture.h" 16 #include "android_webview/native/aw_picture.h"
17 #include "android_webview/native/aw_quota_manager_bridge_impl.h" 17 #include "android_webview/native/aw_quota_manager_bridge_impl.h"
18 #include "android_webview/native/aw_resource.h" 18 #include "android_webview/native/aw_resource.h"
19 #include "android_webview/native/aw_settings.h" 19 #include "android_webview/native/aw_settings.h"
20 #include "android_webview/native/aw_web_contents_delegate.h" 20 #include "android_webview/native/aw_web_contents_delegate.h"
21 #include "android_webview/native/cookie_manager.h" 21 #include "android_webview/native/cookie_manager.h"
22 #include "android_webview/native/external_video_surface_container_impl.h" 22 #include "android_webview/native/external_video_surface_container_impl.h"
23 #include "android_webview/native/input_stream_impl.h" 23 #include "android_webview/native/input_stream_impl.h"
24 #include "android_webview/native/intercepted_request_data_impl.h" 24 #include "android_webview/native/intercepted_request_data_impl.h"
25 #include "android_webview/native/java_browser_view_renderer_helper.h" 25 #include "android_webview/native/java_browser_view_renderer_helper.h"
26 #include "android_webview/native/permission/aw_permission_request.h"
26 #include "base/android/jni_android.h" 27 #include "base/android/jni_android.h"
27 #include "base/android/jni_registrar.h" 28 #include "base/android/jni_registrar.h"
28 #include "base/debug/trace_event.h" 29 #include "base/debug/trace_event.h"
29 30
30 namespace android_webview { 31 namespace android_webview {
31 32
32 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = { 33 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = {
33 // Register JNI for android_webview classes. 34 // Register JNI for android_webview classes.
34 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler }, 35 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler },
35 { "AwAutofillManagerDelegate", RegisterAwAutofillManagerDelegate }, 36 { "AwAutofillManagerDelegate", RegisterAwAutofillManagerDelegate },
36 { "AwContents", RegisterAwContents }, 37 { "AwContents", RegisterAwContents },
37 { "AwContentsClientBridge", RegisterAwContentsClientBridge }, 38 { "AwContentsClientBridge", RegisterAwContentsClientBridge },
38 { "AwContentsIoThreadClientImpl", RegisterAwContentsIoThreadClientImpl }, 39 { "AwContentsIoThreadClientImpl", RegisterAwContentsIoThreadClientImpl },
39 { "AwDevToolsServer", RegisterAwDevToolsServer }, 40 { "AwDevToolsServer", RegisterAwDevToolsServer },
40 { "AwFormDatabase", RegisterAwFormDatabase }, 41 { "AwFormDatabase", RegisterAwFormDatabase },
41 { "AwPicture", RegisterAwPicture }, 42 { "AwPicture", RegisterAwPicture },
42 { "AwSettings", RegisterAwSettings }, 43 { "AwSettings", RegisterAwSettings },
43 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler }, 44 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler },
44 { "AwPdfExporter", RegisterAwPdfExporter }, 45 { "AwPdfExporter", RegisterAwPdfExporter },
46 { "AwPermissionRequest", RegisterAwPermissionRequest },
45 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge }, 47 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge },
46 { "AwResource", AwResource::RegisterAwResource }, 48 { "AwResource", AwResource::RegisterAwResource },
47 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate }, 49 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate },
48 { "CookieManager", RegisterCookieManager }, 50 { "CookieManager", RegisterCookieManager },
49 #if defined(VIDEO_HOLE) 51 #if defined(VIDEO_HOLE)
50 { "ExternalVideoSurfaceContainer", RegisterExternalVideoSurfaceContainer }, 52 { "ExternalVideoSurfaceContainer", RegisterExternalVideoSurfaceContainer },
51 #endif 53 #endif
52 { "InterceptedRequestDataImpl", RegisterInterceptedRequestData }, 54 { "InterceptedRequestDataImpl", RegisterInterceptedRequestData },
53 { "InputStream", RegisterInputStream }, 55 { "InputStream", RegisterInputStream },
54 { "JavaBrowserViewRendererHelper", RegisterJavaBrowserViewRendererHelper }, 56 { "JavaBrowserViewRendererHelper", RegisterJavaBrowserViewRendererHelper },
55 }; 57 };
56 58
57 bool RegisterJni(JNIEnv* env) { 59 bool RegisterJni(JNIEnv* env) {
58 TRACE_EVENT0("startup", "android_webview::RegisterJni"); 60 TRACE_EVENT0("startup", "android_webview::RegisterJni");
59 return RegisterNativeMethods(env, 61 return RegisterNativeMethods(env,
60 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods)); 62 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods));
61 } 63 }
62 64
63 } // namespace android_webview 65 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698