| 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 "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "chrome/browser/android/bookmarks/bookmarks_bridge.h" | 10 #include "chrome/browser/android/bookmarks/bookmarks_bridge.h" |
| 11 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" | 11 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" |
| 12 #include "chrome/browser/android/chromium_application.h" | 12 #include "chrome/browser/android/chromium_application.h" |
| 13 #include "chrome/browser/android/content_view_util.h" | 13 #include "chrome/browser/android/content_view_util.h" |
| 14 #include "chrome/browser/android/dev_tools_server.h" | 14 #include "chrome/browser/android/dev_tools_server.h" |
| 15 #include "chrome/browser/android/favicon_helper.h" | 15 #include "chrome/browser/android/favicon_helper.h" |
| 16 #include "chrome/browser/android/field_trial_helper.h" | 16 #include "chrome/browser/android/field_trial_helper.h" |
| 17 #include "chrome/browser/android/foreign_session_helper.h" | 17 #include "chrome/browser/android/foreign_session_helper.h" |
| 18 #include "chrome/browser/android/intent_helper.h" | 18 #include "chrome/browser/android/intent_helper.h" |
| 19 #include "chrome/browser/android/most_visited_sites.h" | 19 #include "chrome/browser/android/most_visited_sites.h" |
| 20 #include "chrome/browser/android/new_tab_page_prefs.h" | 20 #include "chrome/browser/android/new_tab_page_prefs.h" |
| 21 #include "chrome/browser/android/omnibox/omnibox_prerender.h" | 21 #include "chrome/browser/android/omnibox/omnibox_prerender.h" |
| 22 #include "chrome/browser/android/password_ui_view_android.h" | 22 #include "chrome/browser/android/password_ui_view_android.h" |
| 23 #include "chrome/browser/android/provider/chrome_browser_provider.h" | 23 #include "chrome/browser/android/provider/chrome_browser_provider.h" |
| 24 #include "chrome/browser/android/recently_closed_tabs_bridge.h" | 24 #include "chrome/browser/android/recently_closed_tabs_bridge.h" |
| 25 #include "chrome/browser/android/shortcut_helper.h" | 25 #include "chrome/browser/android/shortcut_helper.h" |
| 26 #include "chrome/browser/android/signin/account_management_screen_helper.h" |
| 26 #include "chrome/browser/android/signin/signin_manager_android.h" | 27 #include "chrome/browser/android/signin/signin_manager_android.h" |
| 27 #include "chrome/browser/android/tab_android.h" | 28 #include "chrome/browser/android/tab_android.h" |
| 28 #include "chrome/browser/android/uma_bridge.h" | 29 #include "chrome/browser/android/uma_bridge.h" |
| 29 #include "chrome/browser/android/uma_utils.h" | 30 #include "chrome/browser/android/uma_utils.h" |
| 30 #include "chrome/browser/android/url_utilities.h" | 31 #include "chrome/browser/android/url_utilities.h" |
| 31 #include "chrome/browser/android/voice_search_tab_helper.h" | 32 #include "chrome/browser/android/voice_search_tab_helper.h" |
| 32 #include "chrome/browser/autofill/android/personal_data_manager_android.h" | 33 #include "chrome/browser/autofill/android/personal_data_manager_android.h" |
| 33 #include "chrome/browser/history/android/sqlite_cursor.h" | 34 #include "chrome/browser/history/android/sqlite_cursor.h" |
| 34 #include "chrome/browser/invalidation/invalidation_controller_android.h" | 35 #include "chrome/browser/invalidation/invalidation_controller_android.h" |
| 35 #include "chrome/browser/lifetime/application_lifetime_android.h" | 36 #include "chrome/browser/lifetime/application_lifetime_android.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 namespace android { | 70 namespace android { |
| 70 | 71 |
| 71 static base::android::RegistrationMethod kChromeRegisteredMethods[] = { | 72 static base::android::RegistrationMethod kChromeRegisteredMethods[] = { |
| 72 // Register JNI for components we depend on. | 73 // Register JNI for components we depend on. |
| 73 { "NavigationInterception", | 74 { "NavigationInterception", |
| 74 navigation_interception::RegisterNavigationInterceptionJni }, | 75 navigation_interception::RegisterNavigationInterceptionJni }, |
| 75 { "WebContentsDelegateAndroid", | 76 { "WebContentsDelegateAndroid", |
| 76 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni }, | 77 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni }, |
| 77 { "RegisterAuxiliaryProfileLoader", autofill::RegisterAutofillAndroidJni }, | 78 { "RegisterAuxiliaryProfileLoader", autofill::RegisterAutofillAndroidJni }, |
| 78 // Register JNI for chrome classes. | 79 // Register JNI for chrome classes. |
| 80 { "AccountManagementScreenHelper", AccountManagementScreenHelper::Register }, |
| 79 { "AndroidProfileOAuth2TokenService", | 81 { "AndroidProfileOAuth2TokenService", |
| 80 AndroidProfileOAuth2TokenService::Register }, | 82 AndroidProfileOAuth2TokenService::Register }, |
| 81 { "ApplicationLifetime", RegisterApplicationLifetimeAndroid }, | 83 { "ApplicationLifetime", RegisterApplicationLifetimeAndroid }, |
| 82 { "AutofillDialogControllerAndroid", | 84 { "AutofillDialogControllerAndroid", |
| 83 autofill::AutofillDialogControllerAndroid:: | 85 autofill::AutofillDialogControllerAndroid:: |
| 84 RegisterAutofillDialogControllerAndroid }, | 86 RegisterAutofillDialogControllerAndroid }, |
| 85 { "AutofillDialogResult", | 87 { "AutofillDialogResult", |
| 86 autofill::AutofillDialogResult::RegisterAutofillDialogResult }, | 88 autofill::AutofillDialogResult::RegisterAutofillDialogResult }, |
| 87 { "AutofillPopup", | 89 { "AutofillPopup", |
| 88 autofill::AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid }, | 90 autofill::AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid }, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 }; | 151 }; |
| 150 | 152 |
| 151 bool RegisterJni(JNIEnv* env) { | 153 bool RegisterJni(JNIEnv* env) { |
| 152 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 154 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
| 153 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 155 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
| 154 arraysize(kChromeRegisteredMethods)); | 156 arraysize(kChromeRegisteredMethods)); |
| 155 } | 157 } |
| 156 | 158 |
| 157 } // namespace android | 159 } // namespace android |
| 158 } // namespace chrome | 160 } // namespace chrome |
| OLD | NEW |