| 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/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
| 10 #include "chrome/browser/after_startup_task_utils_android.h" | 10 #include "chrome/browser/after_startup_task_utils_android.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 #include "chrome/browser/android/preferences/autofill/autofill_profile_bridge.h" | 63 #include "chrome/browser/android/preferences/autofill/autofill_profile_bridge.h" |
| 64 #include "chrome/browser/android/preferences/pref_service_bridge.h" | 64 #include "chrome/browser/android/preferences/pref_service_bridge.h" |
| 65 #include "chrome/browser/android/preferences/website_preference_bridge.h" | 65 #include "chrome/browser/android/preferences/website_preference_bridge.h" |
| 66 #include "chrome/browser/android/profiles/profile_downloader_android.h" | 66 #include "chrome/browser/android/profiles/profile_downloader_android.h" |
| 67 #include "chrome/browser/android/provider/chrome_browser_provider.h" | 67 #include "chrome/browser/android/provider/chrome_browser_provider.h" |
| 68 #include "chrome/browser/android/rappor/rappor_service_bridge.h" | 68 #include "chrome/browser/android/rappor/rappor_service_bridge.h" |
| 69 #include "chrome/browser/android/recently_closed_tabs_bridge.h" | 69 #include "chrome/browser/android/recently_closed_tabs_bridge.h" |
| 70 #include "chrome/browser/android/rlz/revenue_stats.h" | 70 #include "chrome/browser/android/rlz/revenue_stats.h" |
| 71 #include "chrome/browser/android/shortcut_helper.h" | 71 #include "chrome/browser/android/shortcut_helper.h" |
| 72 #include "chrome/browser/android/signin/account_management_screen_helper.h" | 72 #include "chrome/browser/android/signin/account_management_screen_helper.h" |
| 73 #include "chrome/browser/android/signin/account_tracker_service_android.h" |
| 73 #include "chrome/browser/android/signin/signin_manager_android.h" | 74 #include "chrome/browser/android/signin/signin_manager_android.h" |
| 74 #include "chrome/browser/android/tab/thumbnail_tab_helper_android.h" | 75 #include "chrome/browser/android/tab/thumbnail_tab_helper_android.h" |
| 75 #include "chrome/browser/android/tab_android.h" | 76 #include "chrome/browser/android/tab_android.h" |
| 76 #include "chrome/browser/android/tab_state.h" | 77 #include "chrome/browser/android/tab_state.h" |
| 77 #include "chrome/browser/android/url_utilities.h" | 78 #include "chrome/browser/android/url_utilities.h" |
| 78 #include "chrome/browser/android/voice_search_tab_helper.h" | 79 #include "chrome/browser/android/voice_search_tab_helper.h" |
| 79 #include "chrome/browser/android/warmup_manager.h" | 80 #include "chrome/browser/android/warmup_manager.h" |
| 80 #include "chrome/browser/android/web_contents_factory.h" | 81 #include "chrome/browser/android/web_contents_factory.h" |
| 81 #include "chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h" | 82 #include "chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h" |
| 82 #include "chrome/browser/android/webapps/webapp_registry.h" | 83 #include "chrome/browser/android/webapps/webapp_registry.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 navigation_interception::RegisterNavigationInterceptionJni}, | 170 navigation_interception::RegisterNavigationInterceptionJni}, |
| 170 {"Policy", policy::android::RegisterPolicy}, | 171 {"Policy", policy::android::RegisterPolicy}, |
| 171 {"SafeJson", safe_json::android::RegisterSafeJsonJni}, | 172 {"SafeJson", safe_json::android::RegisterSafeJsonJni}, |
| 172 {"Signin", signin::android::RegisterSigninJni}, | 173 {"Signin", signin::android::RegisterSigninJni}, |
| 173 {"WebContentsDelegateAndroid", | 174 {"WebContentsDelegateAndroid", |
| 174 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni}, | 175 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni}, |
| 175 // Register JNI for chrome classes. | 176 // Register JNI for chrome classes. |
| 176 {"AccessibilityUtils", AccessibilityUtil::Register}, | 177 {"AccessibilityUtils", AccessibilityUtil::Register}, |
| 177 {"AccountChooserInfoBar", RegisterAccountChooserInfoBar}, | 178 {"AccountChooserInfoBar", RegisterAccountChooserInfoBar}, |
| 178 {"AccountManagementScreenHelper", AccountManagementScreenHelper::Register}, | 179 {"AccountManagementScreenHelper", AccountManagementScreenHelper::Register}, |
| 180 {"AccountTrackerService", AccountTrackerServiceAndroid::Register}, |
| 179 {"AddToHomescreenDialogHelper", | 181 {"AddToHomescreenDialogHelper", |
| 180 AddToHomescreenDialogHelper::RegisterAddToHomescreenDialogHelper}, | 182 AddToHomescreenDialogHelper::RegisterAddToHomescreenDialogHelper}, |
| 181 {"AfterStartupTaskUtils", RegisterAfterStartupTaskUtilsJNI}, | 183 {"AfterStartupTaskUtils", RegisterAfterStartupTaskUtilsJNI}, |
| 182 {"AnswersImageBridge", RegisterAnswersImageBridge}, | 184 {"AnswersImageBridge", RegisterAnswersImageBridge}, |
| 183 {"AppBannerInfoBarAndroid", RegisterAppBannerInfoBarAndroid}, | 185 {"AppBannerInfoBarAndroid", RegisterAppBannerInfoBarAndroid}, |
| 184 {"AppBannerInfoBarDelegateAndroid", | 186 {"AppBannerInfoBarDelegateAndroid", |
| 185 banners::RegisterAppBannerInfoBarDelegateAndroid}, | 187 banners::RegisterAppBannerInfoBarDelegateAndroid}, |
| 186 {"AppBannerManagerAndroid", banners::AppBannerManagerAndroid::Register}, | 188 {"AppBannerManagerAndroid", banners::AppBannerManagerAndroid::Register}, |
| 187 {"ApplicationLifetime", RegisterApplicationLifetimeAndroid}, | 189 {"ApplicationLifetime", RegisterApplicationLifetimeAndroid}, |
| 188 {"AutocompleteControllerAndroid", RegisterAutocompleteControllerAndroid}, | 190 {"AutocompleteControllerAndroid", RegisterAutocompleteControllerAndroid}, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 }; | 346 }; |
| 345 | 347 |
| 346 bool RegisterBrowserJNI(JNIEnv* env) { | 348 bool RegisterBrowserJNI(JNIEnv* env) { |
| 347 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 349 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
| 348 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 350 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
| 349 arraysize(kChromeRegisteredMethods)); | 351 arraysize(kChromeRegisteredMethods)); |
| 350 } | 352 } |
| 351 | 353 |
| 352 } // namespace android | 354 } // namespace android |
| 353 } // namespace chrome | 355 } // namespace chrome |
| OLD | NEW |