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

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

Issue 11365199: Move WebContentsDelegateAndroid to content/components (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 1 month 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 | Annotate | Revision Log
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/android_stream_reader_url_request_job.h" 8 #include "android_webview/native/android_stream_reader_url_request_job.h"
9 #include "android_webview/native/aw_contents.h" 9 #include "android_webview/native/aw_contents.h"
10 #include "android_webview/native/aw_contents_io_thread_client_impl.h" 10 #include "android_webview/native/aw_contents_io_thread_client_impl.h"
11 #include "android_webview/native/aw_http_auth_handler.h" 11 #include "android_webview/native/aw_http_auth_handler.h"
12 #include "android_webview/native/aw_resource.h" 12 #include "android_webview/native/aw_resource.h"
13 #include "android_webview/native/cookie_manager.h" 13 #include "android_webview/native/cookie_manager.h"
14 #include "android_webview/native/intercepted_request_data_impl.h" 14 #include "android_webview/native/intercepted_request_data_impl.h"
15 #include "android_webview/native/js_result_handler.h" 15 #include "android_webview/native/js_result_handler.h"
16 #include "base/android/jni_android.h" 16 #include "base/android/jni_android.h"
17 #include "base/android/jni_registrar.h" 17 #include "base/android/jni_registrar.h"
18 #include "chrome/browser/component/web_contents_delegate_android/component_jni_r egistrar.h"
19 #include "content/components/navigation_interception/component_jni_registrar.h" 18 #include "content/components/navigation_interception/component_jni_registrar.h"
19 #include "content/components/web_contents_delegate_android/component_jni_registr ar.h"
20 20
21 namespace android_webview { 21 namespace android_webview {
22 22
23 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = { 23 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = {
24 // Register JNI for components we depend on. 24 // Register JNI for components we depend on.
25 { "navigation_interception", content::RegisterNavigationInterceptionJni }, 25 { "navigation_interception", content::RegisterNavigationInterceptionJni },
26 { "web_contents_delegate_android", 26 { "web_contents_delegate_android",
27 web_contents_delegate_android::RegisterJni }, 27 content::RegisterWebContentsDelegateAndroidJni },
28 // Register JNI for android_webview classes. 28 // Register JNI for android_webview classes.
29 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler }, 29 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler },
30 { "AndroidStreamReaderUrlRequestJob", 30 { "AndroidStreamReaderUrlRequestJob",
31 RegisterAndroidStreamReaderUrlRequestJob }, 31 RegisterAndroidStreamReaderUrlRequestJob },
32 { "AwContents", RegisterAwContents }, 32 { "AwContents", RegisterAwContents },
33 { "AwContentsIoThreadClientImpl", RegisterAwContentsIoThreadClientImpl}, 33 { "AwContentsIoThreadClientImpl", RegisterAwContentsIoThreadClientImpl},
34 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler }, 34 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler },
35 { "AwResource", AwResource::RegisterAwResource }, 35 { "AwResource", AwResource::RegisterAwResource },
36 { "CookieManager", RegisterCookieManager }, 36 { "CookieManager", RegisterCookieManager },
37 { "InterceptedRequestDataImpl", RegisterInterceptedRequestData }, 37 { "InterceptedRequestDataImpl", RegisterInterceptedRequestData },
38 { "JsResultHandler", RegisterJsResultHandler }, 38 { "JsResultHandler", RegisterJsResultHandler },
39 }; 39 };
40 40
41 bool RegisterJni(JNIEnv* env) { 41 bool RegisterJni(JNIEnv* env) {
42 return RegisterNativeMethods(env, 42 return RegisterNativeMethods(env,
43 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods)); 43 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods));
44 } 44 }
45 45
46 } // namespace android_webview 46 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698