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

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

Issue 12091111: Implement Webviewclient.onReceivedSslError (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wasting time... Created 7 years, 10 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_contents.h" 8 #include "android_webview/native/aw_contents.h"
9 #include "android_webview/native/aw_contents_client_bridge.h"
9 #include "android_webview/native/aw_contents_io_thread_client_impl.h" 10 #include "android_webview/native/aw_contents_io_thread_client_impl.h"
10 #include "android_webview/native/aw_http_auth_handler.h" 11 #include "android_webview/native/aw_http_auth_handler.h"
11 #include "android_webview/native/aw_quota_manager_bridge_impl.h" 12 #include "android_webview/native/aw_quota_manager_bridge_impl.h"
12 #include "android_webview/native/aw_resource.h" 13 #include "android_webview/native/aw_resource.h"
13 #include "android_webview/native/aw_settings.h" 14 #include "android_webview/native/aw_settings.h"
14 #include "android_webview/native/aw_web_contents_delegate.h" 15 #include "android_webview/native/aw_web_contents_delegate.h"
15 #include "android_webview/native/cookie_manager.h" 16 #include "android_webview/native/cookie_manager.h"
16 #include "android_webview/native/input_stream_impl.h" 17 #include "android_webview/native/input_stream_impl.h"
17 #include "android_webview/native/intercepted_request_data_impl.h" 18 #include "android_webview/native/intercepted_request_data_impl.h"
18 #include "android_webview/native/java_browser_view_renderer_helper.h" 19 #include "android_webview/native/java_browser_view_renderer_helper.h"
19 #include "android_webview/native/js_result_handler.h" 20 #include "android_webview/native/js_result_handler.h"
20 #include "base/android/jni_android.h" 21 #include "base/android/jni_android.h"
21 #include "base/android/jni_registrar.h" 22 #include "base/android/jni_registrar.h"
22 23
23 namespace android_webview { 24 namespace android_webview {
24 25
25 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = { 26 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = {
26 // Register JNI for android_webview classes. 27 // Register JNI for android_webview classes.
27 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler }, 28 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler },
28 { "AwContents", RegisterAwContents }, 29 { "AwContents", RegisterAwContents },
30 { "AwContentsClientBridge", RegisterAwContentsClientBridge },
29 { "AwContentsIoThreadClientImpl", RegisterAwContentsIoThreadClientImpl}, 31 { "AwContentsIoThreadClientImpl", RegisterAwContentsIoThreadClientImpl},
30 { "AwSettings", RegisterAwSettings }, 32 { "AwSettings", RegisterAwSettings },
31 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler }, 33 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler },
32 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge }, 34 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge },
33 { "AwResource", AwResource::RegisterAwResource }, 35 { "AwResource", AwResource::RegisterAwResource },
34 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate }, 36 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate },
35 { "CookieManager", RegisterCookieManager }, 37 { "CookieManager", RegisterCookieManager },
36 { "InterceptedRequestDataImpl", RegisterInterceptedRequestData }, 38 { "InterceptedRequestDataImpl", RegisterInterceptedRequestData },
37 { "InputStream", RegisterInputStream }, 39 { "InputStream", RegisterInputStream },
38 { "JavaBrowserViewRendererHelper", RegisterJavaBrowserViewRendererHelper }, 40 { "JavaBrowserViewRendererHelper", RegisterJavaBrowserViewRendererHelper },
39 { "JsResultHandler", RegisterJsResultHandler }, 41 { "JsResultHandler", RegisterJsResultHandler },
40 }; 42 };
41 43
42 bool RegisterJni(JNIEnv* env) { 44 bool RegisterJni(JNIEnv* env) {
43 return RegisterNativeMethods(env, 45 return RegisterNativeMethods(env,
44 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods)); 46 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods));
45 } 47 }
46 48
47 } // namespace android_webview 49 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698