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