OLD | NEW |
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 "chrome/browser/android/chrome_jni_registrar.h" | 5 #include "chrome/browser/android/chrome_jni_registrar.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_registrar.h" | 8 #include "base/android/jni_registrar.h" |
9 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" | 9 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" |
10 #include "chrome/browser/android/content_view_util.h" | 10 #include "chrome/browser/android/content_view_util.h" |
11 #include "chrome/browser/android/dev_tools_server.h" | 11 #include "chrome/browser/android/dev_tools_server.h" |
12 #include "chrome/browser/android/intent_helper.h" | 12 #include "chrome/browser/android/intent_helper.h" |
13 #include "chrome/browser/android/process_utils.h" | 13 #include "chrome/browser/android/process_utils.h" |
14 #include "chrome/browser/android/provider/chrome_browser_provider.h" | 14 #include "chrome/browser/android/provider/chrome_browser_provider.h" |
15 #include "chrome/browser/history/android/sqlite_cursor.h" | 15 #include "chrome/browser/history/android/sqlite_cursor.h" |
16 #include "chrome/browser/lifetime/application_lifetime_android.h" | 16 #include "chrome/browser/lifetime/application_lifetime_android.h" |
17 #include "chrome/browser/search_engines/template_url_service_android.h" | 17 #include "chrome/browser/search_engines/template_url_service_android.h" |
| 18 #include "chrome/browser/sync/profile_sync_service_android.h" |
18 #include "chrome/browser/ui/android/autofill/autofill_dialog_view_android.h" | 19 #include "chrome/browser/ui/android/autofill/autofill_dialog_view_android.h" |
19 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h" | 20 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h" |
20 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" | 21 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" |
21 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" | 22 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" |
22 #include "chrome/browser/ui/android/navigation_popup.h" | 23 #include "chrome/browser/ui/android/navigation_popup.h" |
23 #include "chrome/browser/ui/android/website_settings_popup_android.h" | 24 #include "chrome/browser/ui/android/website_settings_popup_android.h" |
24 #include "components/navigation_interception/component_jni_registrar.h" | 25 #include "components/navigation_interception/component_jni_registrar.h" |
25 #include "components/web_contents_delegate_android/component_jni_registrar.h" | 26 #include "components/web_contents_delegate_android/component_jni_registrar.h" |
26 | 27 |
27 bool RegisterCertificateViewer(JNIEnv* env); | 28 bool RegisterCertificateViewer(JNIEnv* env); |
(...skipping 19 matching lines...) Expand all Loading... |
47 ChromeHttpAuthHandler::RegisterChromeHttpAuthHandler }, | 48 ChromeHttpAuthHandler::RegisterChromeHttpAuthHandler }, |
48 { "ChromeWebContentsDelegateAndroid", | 49 { "ChromeWebContentsDelegateAndroid", |
49 RegisterChromeWebContentsDelegateAndroid }, | 50 RegisterChromeWebContentsDelegateAndroid }, |
50 { "ContentViewUtil", RegisterContentViewUtil }, | 51 { "ContentViewUtil", RegisterContentViewUtil }, |
51 { "DevToolsServer", RegisterDevToolsServer }, | 52 { "DevToolsServer", RegisterDevToolsServer }, |
52 { "IntentHelper", RegisterIntentHelper }, | 53 { "IntentHelper", RegisterIntentHelper }, |
53 { "JavascriptAppModalDialog", | 54 { "JavascriptAppModalDialog", |
54 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog }, | 55 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog }, |
55 { "NavigationPopup", NavigationPopup::RegisterNavigationPopup }, | 56 { "NavigationPopup", NavigationPopup::RegisterNavigationPopup }, |
56 { "ProcessUtils", RegisterProcessUtils }, | 57 { "ProcessUtils", RegisterProcessUtils }, |
| 58 { "ProfileSyncService", ProfileSyncServiceAndroid::Register }, |
57 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor }, | 59 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor }, |
58 { "TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register }, | 60 { "TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register }, |
59 { "WebsiteSettingsPopupAndroid", | 61 { "WebsiteSettingsPopupAndroid", |
60 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, | 62 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, |
61 }; | 63 }; |
62 | 64 |
63 bool RegisterJni(JNIEnv* env) { | 65 bool RegisterJni(JNIEnv* env) { |
64 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 66 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
65 arraysize(kChromeRegisteredMethods)); | 67 arraysize(kChromeRegisteredMethods)); |
66 } | 68 } |
67 | 69 |
68 } // namespace android | 70 } // namespace android |
69 } // namespace chrome | 71 } // namespace chrome |
OLD | NEW |