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

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

Issue 54963005: Upstream printing changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years 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
« no previous file with comments | « android_webview/native/DEPS ('k') | android_webview/native/aw_contents.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_picture.h" 16 #include "android_webview/native/aw_picture.h"
16 #include "android_webview/native/aw_quota_manager_bridge_impl.h" 17 #include "android_webview/native/aw_quota_manager_bridge_impl.h"
17 #include "android_webview/native/aw_resource.h" 18 #include "android_webview/native/aw_resource.h"
18 #include "android_webview/native/aw_settings.h" 19 #include "android_webview/native/aw_settings.h"
19 #include "android_webview/native/aw_web_contents_delegate.h" 20 #include "android_webview/native/aw_web_contents_delegate.h"
20 #include "android_webview/native/cookie_manager.h" 21 #include "android_webview/native/cookie_manager.h"
21 #include "android_webview/native/input_stream_impl.h" 22 #include "android_webview/native/input_stream_impl.h"
22 #include "android_webview/native/intercepted_request_data_impl.h" 23 #include "android_webview/native/intercepted_request_data_impl.h"
23 #include "android_webview/native/java_browser_view_renderer_helper.h" 24 #include "android_webview/native/java_browser_view_renderer_helper.h"
24 #include "base/android/jni_android.h" 25 #include "base/android/jni_android.h"
25 #include "base/android/jni_registrar.h" 26 #include "base/android/jni_registrar.h"
26 #include "base/debug/trace_event.h" 27 #include "base/debug/trace_event.h"
27 28
28 namespace android_webview { 29 namespace android_webview {
29 30
30 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = { 31 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = {
31 // Register JNI for android_webview classes. 32 // Register JNI for android_webview classes.
32 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler }, 33 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler },
33 { "AwAutofillManagerDelegate", RegisterAwAutofillManagerDelegate }, 34 { "AwAutofillManagerDelegate", RegisterAwAutofillManagerDelegate },
34 { "AwContents", RegisterAwContents }, 35 { "AwContents", RegisterAwContents },
35 { "AwContentsClientBridge", RegisterAwContentsClientBridge }, 36 { "AwContentsClientBridge", RegisterAwContentsClientBridge },
36 { "AwContentsIoThreadClientImpl", RegisterAwContentsIoThreadClientImpl }, 37 { "AwContentsIoThreadClientImpl", RegisterAwContentsIoThreadClientImpl },
37 { "AwDevToolsServer", RegisterAwDevToolsServer }, 38 { "AwDevToolsServer", RegisterAwDevToolsServer },
38 { "AwFormDatabase", RegisterAwFormDatabase }, 39 { "AwFormDatabase", RegisterAwFormDatabase },
39 { "AwPicture", RegisterAwPicture }, 40 { "AwPicture", RegisterAwPicture },
40 { "AwSettings", RegisterAwSettings }, 41 { "AwSettings", RegisterAwSettings },
41 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler }, 42 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler },
43 { "AwPdfExporter", RegisterAwPdfExporter },
42 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge }, 44 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge },
43 { "AwResource", AwResource::RegisterAwResource }, 45 { "AwResource", AwResource::RegisterAwResource },
44 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate }, 46 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate },
45 { "CookieManager", RegisterCookieManager }, 47 { "CookieManager", RegisterCookieManager },
46 { "InterceptedRequestDataImpl", RegisterInterceptedRequestData }, 48 { "InterceptedRequestDataImpl", RegisterInterceptedRequestData },
47 { "InputStream", RegisterInputStream }, 49 { "InputStream", RegisterInputStream },
48 { "JavaBrowserViewRendererHelper", RegisterJavaBrowserViewRendererHelper }, 50 { "JavaBrowserViewRendererHelper", RegisterJavaBrowserViewRendererHelper },
49 }; 51 };
50 52
51 bool RegisterJni(JNIEnv* env) { 53 bool RegisterJni(JNIEnv* env) {
52 TRACE_EVENT0("startup", "android_webview::RegisterJni"); 54 TRACE_EVENT0("startup", "android_webview::RegisterJni");
53 return RegisterNativeMethods(env, 55 return RegisterNativeMethods(env,
54 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods)); 56 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods));
55 } 57 }
56 58
57 } // namespace android_webview 59 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/DEPS ('k') | android_webview/native/aw_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698