| 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/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 #include "chrome/browser/android/shortcut_helper.h" | 85 #include "chrome/browser/android/shortcut_helper.h" |
| 86 #include "chrome/browser/android/signin/account_management_screen_helper.h" | 86 #include "chrome/browser/android/signin/account_management_screen_helper.h" |
| 87 #include "chrome/browser/android/signin/account_tracker_service_android.h" | 87 #include "chrome/browser/android/signin/account_tracker_service_android.h" |
| 88 #include "chrome/browser/android/signin/signin_investigator_android.h" | 88 #include "chrome/browser/android/signin/signin_investigator_android.h" |
| 89 #include "chrome/browser/android/signin/signin_manager_android.h" | 89 #include "chrome/browser/android/signin/signin_manager_android.h" |
| 90 #include "chrome/browser/android/tab_android.h" | 90 #include "chrome/browser/android/tab_android.h" |
| 91 #include "chrome/browser/android/tab_state.h" | 91 #include "chrome/browser/android/tab_state.h" |
| 92 #include "chrome/browser/android/tab_web_contents_delegate_android.h" | 92 #include "chrome/browser/android/tab_web_contents_delegate_android.h" |
| 93 #include "chrome/browser/android/url_utilities.h" | 93 #include "chrome/browser/android/url_utilities.h" |
| 94 #include "chrome/browser/android/voice_search_tab_helper.h" | 94 #include "chrome/browser/android/voice_search_tab_helper.h" |
| 95 #include "chrome/browser/android/vr_shell/vr_shell.h" |
| 95 #include "chrome/browser/android/warmup_manager.h" | 96 #include "chrome/browser/android/warmup_manager.h" |
| 96 #include "chrome/browser/android/web_contents_factory.h" | 97 #include "chrome/browser/android/web_contents_factory.h" |
| 97 #include "chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.h" | 98 #include "chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.h" |
| 98 #include "chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h" | 99 #include "chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h" |
| 99 #include "chrome/browser/android/webapps/webapp_registry.h" | 100 #include "chrome/browser/android/webapps/webapp_registry.h" |
| 100 #include "chrome/browser/autofill/android/personal_data_manager_android.h" | 101 #include "chrome/browser/autofill/android/personal_data_manager_android.h" |
| 101 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" | 102 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" |
| 102 #include "chrome/browser/dom_distiller/tab_utils_android.h" | 103 #include "chrome/browser/dom_distiller/tab_utils_android.h" |
| 103 #include "chrome/browser/history/android/sqlite_cursor.h" | 104 #include "chrome/browser/history/android/sqlite_cursor.h" |
| 104 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" | 105 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 {"ToolbarModelAndroid", ToolbarModelAndroid::RegisterToolbarModelAndroid}, | 345 {"ToolbarModelAndroid", ToolbarModelAndroid::RegisterToolbarModelAndroid}, |
| 345 {"ToolbarSceneLayer", RegisterToolbarSceneLayer}, | 346 {"ToolbarSceneLayer", RegisterToolbarSceneLayer}, |
| 346 {"TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate}, | 347 {"TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate}, |
| 347 {"TtsPlatformImpl", TtsPlatformImplAndroid::Register}, | 348 {"TtsPlatformImpl", TtsPlatformImplAndroid::Register}, |
| 348 {"UmaSessionStats", RegisterUmaSessionStats}, | 349 {"UmaSessionStats", RegisterUmaSessionStats}, |
| 349 {"UrlFilterBridge", UrlFilterBridge::Register}, | 350 {"UrlFilterBridge", UrlFilterBridge::Register}, |
| 350 {"UrlUtilities", RegisterUrlUtilities}, | 351 {"UrlUtilities", RegisterUrlUtilities}, |
| 351 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, | 352 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, |
| 352 {"Variations", variations::android::RegisterVariations}, | 353 {"Variations", variations::android::RegisterVariations}, |
| 353 {"VariationsSession", chrome::android::RegisterVariationsSession}, | 354 {"VariationsSession", chrome::android::RegisterVariationsSession}, |
| 355 {"VrShell", vr_shell::RegisterVrShell}, |
| 354 {"WarmupManager", RegisterWarmupManager}, | 356 {"WarmupManager", RegisterWarmupManager}, |
| 355 {"WebappRegistry", WebappRegistry::RegisterWebappRegistry}, | 357 {"WebappRegistry", WebappRegistry::RegisterWebappRegistry}, |
| 356 {"WebContentsFactory", RegisterWebContentsFactory}, | 358 {"WebContentsFactory", RegisterWebContentsFactory}, |
| 357 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, | 359 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, |
| 358 {"WebsiteSettingsPopupAndroid", | 360 {"WebsiteSettingsPopupAndroid", |
| 359 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, | 361 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, |
| 360 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) | 362 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) |
| 361 {"PrintingContext", | 363 {"PrintingContext", |
| 362 printing::PrintingContextAndroid::RegisterPrintingContext}, | 364 printing::PrintingContextAndroid::RegisterPrintingContext}, |
| 363 #endif | 365 #endif |
| 364 }; | 366 }; |
| 365 | 367 |
| 366 bool RegisterBrowserJNI(JNIEnv* env) { | 368 bool RegisterBrowserJNI(JNIEnv* env) { |
| 367 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 369 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
| 368 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 370 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
| 369 arraysize(kChromeRegisteredMethods)); | 371 arraysize(kChromeRegisteredMethods)); |
| 370 } | 372 } |
| 371 | 373 |
| 372 } // namespace android | 374 } // namespace android |
| 373 } // namespace chrome | 375 } // namespace chrome |
| OLD | NEW |