| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 #include "chrome/browser/android/tab_state.h" | 97 #include "chrome/browser/android/tab_state.h" |
| 98 #include "chrome/browser/android/tab_web_contents_delegate_android.h" | 98 #include "chrome/browser/android/tab_web_contents_delegate_android.h" |
| 99 #include "chrome/browser/android/url_utilities.h" | 99 #include "chrome/browser/android/url_utilities.h" |
| 100 #include "chrome/browser/android/voice_search_tab_helper.h" | 100 #include "chrome/browser/android/voice_search_tab_helper.h" |
| 101 #include "chrome/browser/android/warmup_manager.h" | 101 #include "chrome/browser/android/warmup_manager.h" |
| 102 #include "chrome/browser/android/web_contents_factory.h" | 102 #include "chrome/browser/android/web_contents_factory.h" |
| 103 #include "chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.h" | 103 #include "chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.h" |
| 104 #include "chrome/browser/android/webapk/webapk_installer.h" | 104 #include "chrome/browser/android/webapk/webapk_installer.h" |
| 105 #include "chrome/browser/android/webapk/webapk_update_manager.h" | 105 #include "chrome/browser/android/webapk/webapk_update_manager.h" |
| 106 #include "chrome/browser/android/webapps/add_to_homescreen_manager.h" | 106 #include "chrome/browser/android/webapps/add_to_homescreen_manager.h" |
| 107 #include "chrome/browser/android/webapps/webapp_registry.h" | |
| 108 #include "chrome/browser/autofill/android/personal_data_manager_android.h" | 107 #include "chrome/browser/autofill/android/personal_data_manager_android.h" |
| 109 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" | 108 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" |
| 110 #include "chrome/browser/dom_distiller/tab_utils_android.h" | 109 #include "chrome/browser/dom_distiller/tab_utils_android.h" |
| 111 #include "chrome/browser/history/android/sqlite_cursor.h" | 110 #include "chrome/browser/history/android/sqlite_cursor.h" |
| 112 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" | 111 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" |
| 113 #include "chrome/browser/media/android/cdm/media_drm_credential_manager.h" | 112 #include "chrome/browser/media/android/cdm/media_drm_credential_manager.h" |
| 114 #include "chrome/browser/media/android/remote/record_cast_action.h" | 113 #include "chrome/browser/media/android/remote/record_cast_action.h" |
| 115 #include "chrome/browser/media/android/remote/remote_media_player_bridge.h" | 114 #include "chrome/browser/media/android/remote/remote_media_player_bridge.h" |
| 116 #include "chrome/browser/media/android/router/media_router_android.h" | 115 #include "chrome/browser/media/android/router/media_router_android.h" |
| 117 #include "chrome/browser/media/android/router/media_router_dialog_controller_and
roid.h" | 116 #include "chrome/browser/media/android/router/media_router_dialog_controller_and
roid.h" |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, | 382 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, |
| 384 {"Variations", variations::android::RegisterVariations}, | 383 {"Variations", variations::android::RegisterVariations}, |
| 385 {"VariationsSession", chrome::android::RegisterVariationsSession}, | 384 {"VariationsSession", chrome::android::RegisterVariationsSession}, |
| 386 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) | 385 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) |
| 387 {"VrShell", vr_shell::RegisterVrShell}, | 386 {"VrShell", vr_shell::RegisterVrShell}, |
| 388 {"VrShellDelegate", vr_shell::RegisterVrShellDelegate}, | 387 {"VrShellDelegate", vr_shell::RegisterVrShellDelegate}, |
| 389 #endif | 388 #endif |
| 390 {"WarmupManager", RegisterWarmupManager}, | 389 {"WarmupManager", RegisterWarmupManager}, |
| 391 {"WebApkInstaller", WebApkInstaller::Register}, | 390 {"WebApkInstaller", WebApkInstaller::Register}, |
| 392 {"WebApkUpdateManager", WebApkUpdateManager::Register}, | 391 {"WebApkUpdateManager", WebApkUpdateManager::Register}, |
| 393 {"WebappRegistry", WebappRegistry::RegisterWebappRegistry}, | |
| 394 {"WebContentsFactory", RegisterWebContentsFactory}, | 392 {"WebContentsFactory", RegisterWebContentsFactory}, |
| 395 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, | 393 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, |
| 396 {"WebsiteSettingsPopupAndroid", | 394 {"WebsiteSettingsPopupAndroid", |
| 397 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, | 395 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, |
| 398 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) | 396 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) |
| 399 {"PrintingContext", | 397 {"PrintingContext", |
| 400 printing::PrintingContextAndroid::RegisterPrintingContext}, | 398 printing::PrintingContextAndroid::RegisterPrintingContext}, |
| 401 #endif | 399 #endif |
| 402 }; | 400 }; |
| 403 | 401 |
| 404 bool RegisterBrowserJNI(JNIEnv* env) { | 402 bool RegisterBrowserJNI(JNIEnv* env) { |
| 405 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 403 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
| 406 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 404 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
| 407 arraysize(kChromeRegisteredMethods)); | 405 arraysize(kChromeRegisteredMethods)); |
| 408 } | 406 } |
| 409 | 407 |
| 410 } // namespace android | 408 } // namespace android |
| OLD | NEW |