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