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

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

Issue 831523004: Enable posting a message from JS to Android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component builds Created 5 years, 11 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_assets.h" 8 #include "android_webview/native/aw_assets.h"
9 #include "android_webview/native/aw_autofill_client.h" 9 #include "android_webview/native/aw_autofill_client.h"
10 #include "android_webview/native/aw_contents.h" 10 #include "android_webview/native/aw_contents.h"
11 #include "android_webview/native/aw_contents_client_bridge.h" 11 #include "android_webview/native/aw_contents_client_bridge.h"
12 #include "android_webview/native/aw_contents_io_thread_client_impl.h" 12 #include "android_webview/native/aw_contents_io_thread_client_impl.h"
13 #include "android_webview/native/aw_contents_statics.h" 13 #include "android_webview/native/aw_contents_statics.h"
14 #include "android_webview/native/aw_dev_tools_server.h" 14 #include "android_webview/native/aw_dev_tools_server.h"
15 #include "android_webview/native/aw_form_database.h" 15 #include "android_webview/native/aw_form_database.h"
16 #include "android_webview/native/aw_http_auth_handler.h" 16 #include "android_webview/native/aw_http_auth_handler.h"
17 #include "android_webview/native/aw_message_port_service_impl.h"
17 #include "android_webview/native/aw_pdf_exporter.h" 18 #include "android_webview/native/aw_pdf_exporter.h"
18 #include "android_webview/native/aw_picture.h" 19 #include "android_webview/native/aw_picture.h"
19 #include "android_webview/native/aw_quota_manager_bridge_impl.h" 20 #include "android_webview/native/aw_quota_manager_bridge_impl.h"
20 #include "android_webview/native/aw_resource.h" 21 #include "android_webview/native/aw_resource.h"
21 #include "android_webview/native/aw_settings.h" 22 #include "android_webview/native/aw_settings.h"
22 #include "android_webview/native/aw_web_contents_delegate.h" 23 #include "android_webview/native/aw_web_contents_delegate.h"
23 #include "android_webview/native/aw_web_resource_response_impl.h" 24 #include "android_webview/native/aw_web_resource_response_impl.h"
24 #include "android_webview/native/cookie_manager.h" 25 #include "android_webview/native/cookie_manager.h"
25 #include "android_webview/native/external_video_surface_container_impl.h" 26 #include "android_webview/native/external_video_surface_container_impl.h"
26 #include "android_webview/native/input_stream_impl.h" 27 #include "android_webview/native/input_stream_impl.h"
(...skipping 24 matching lines...) Expand all
51 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge }, 52 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge },
52 { "AwResource", AwResource::RegisterAwResource }, 53 { "AwResource", AwResource::RegisterAwResource },
53 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate }, 54 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate },
54 { "CookieManager", RegisterCookieManager }, 55 { "CookieManager", RegisterCookieManager },
55 #if defined(VIDEO_HOLE) 56 #if defined(VIDEO_HOLE)
56 { "ExternalVideoSurfaceContainer", RegisterExternalVideoSurfaceContainer }, 57 { "ExternalVideoSurfaceContainer", RegisterExternalVideoSurfaceContainer },
57 #endif 58 #endif
58 { "AwWebResourceResponseImpl", RegisterAwWebResourceResponse }, 59 { "AwWebResourceResponseImpl", RegisterAwWebResourceResponse },
59 { "InputStream", RegisterInputStream }, 60 { "InputStream", RegisterInputStream },
60 { "JavaBrowserViewRendererHelper", RegisterJavaBrowserViewRendererHelper }, 61 { "JavaBrowserViewRendererHelper", RegisterJavaBrowserViewRendererHelper },
62 { "AwMessagePortService", RegisterAwMessagePortService },
61 }; 63 };
62 64
63 bool RegisterJni(JNIEnv* env) { 65 bool RegisterJni(JNIEnv* env) {
64 TRACE_EVENT0("startup", "android_webview::RegisterJni"); 66 TRACE_EVENT0("startup", "android_webview::RegisterJni");
65 return RegisterNativeMethods(env, 67 return RegisterNativeMethods(env,
66 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods)); 68 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods));
67 } 69 }
68 70
69 } // namespace android_webview 71 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698