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