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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 #include "chrome/browser/android/signin/signin_investigator_android.h" | 89 #include "chrome/browser/android/signin/signin_investigator_android.h" |
90 #include "chrome/browser/android/signin/signin_manager_android.h" | 90 #include "chrome/browser/android/signin/signin_manager_android.h" |
91 #include "chrome/browser/android/tab_android.h" | 91 #include "chrome/browser/android/tab_android.h" |
92 #include "chrome/browser/android/tab_state.h" | 92 #include "chrome/browser/android/tab_state.h" |
93 #include "chrome/browser/android/tab_web_contents_delegate_android.h" | 93 #include "chrome/browser/android/tab_web_contents_delegate_android.h" |
94 #include "chrome/browser/android/url_utilities.h" | 94 #include "chrome/browser/android/url_utilities.h" |
95 #include "chrome/browser/android/voice_search_tab_helper.h" | 95 #include "chrome/browser/android/voice_search_tab_helper.h" |
96 #include "chrome/browser/android/warmup_manager.h" | 96 #include "chrome/browser/android/warmup_manager.h" |
97 #include "chrome/browser/android/web_contents_factory.h" | 97 #include "chrome/browser/android/web_contents_factory.h" |
98 #include "chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.h" | 98 #include "chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.h" |
| 99 #include "chrome/browser/android/webapk/webapk_installer.h" |
99 #include "chrome/browser/android/webapk/webapk_update_manager.h" | 100 #include "chrome/browser/android/webapk/webapk_update_manager.h" |
100 #include "chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h" | 101 #include "chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h" |
101 #include "chrome/browser/android/webapps/webapp_registry.h" | 102 #include "chrome/browser/android/webapps/webapp_registry.h" |
102 #include "chrome/browser/autofill/android/personal_data_manager_android.h" | 103 #include "chrome/browser/autofill/android/personal_data_manager_android.h" |
103 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" | 104 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" |
104 #include "chrome/browser/dom_distiller/tab_utils_android.h" | 105 #include "chrome/browser/dom_distiller/tab_utils_android.h" |
105 #include "chrome/browser/history/android/sqlite_cursor.h" | 106 #include "chrome/browser/history/android/sqlite_cursor.h" |
106 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" | 107 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" |
107 #include "chrome/browser/media/android/cdm/media_drm_credential_manager.h" | 108 #include "chrome/browser/media/android/cdm/media_drm_credential_manager.h" |
108 #include "chrome/browser/media/android/remote/record_cast_action.h" | 109 #include "chrome/browser/media/android/remote/record_cast_action.h" |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 {"UmaSessionStats", RegisterUmaSessionStats}, | 361 {"UmaSessionStats", RegisterUmaSessionStats}, |
361 {"UrlFilterBridge", UrlFilterBridge::Register}, | 362 {"UrlFilterBridge", UrlFilterBridge::Register}, |
362 {"UrlUtilities", RegisterUrlUtilities}, | 363 {"UrlUtilities", RegisterUrlUtilities}, |
363 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, | 364 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, |
364 {"Variations", variations::android::RegisterVariations}, | 365 {"Variations", variations::android::RegisterVariations}, |
365 {"VariationsSession", chrome::android::RegisterVariationsSession}, | 366 {"VariationsSession", chrome::android::RegisterVariationsSession}, |
366 #if defined(ENABLE_VR_SHELL) | 367 #if defined(ENABLE_VR_SHELL) |
367 {"VrShell", vr_shell::RegisterVrShell}, | 368 {"VrShell", vr_shell::RegisterVrShell}, |
368 #endif | 369 #endif |
369 {"WarmupManager", RegisterWarmupManager}, | 370 {"WarmupManager", RegisterWarmupManager}, |
| 371 {"WebApkInstaller", WebApkInstaller::Register}, |
370 {"WebApkUpdateManager", WebApkUpdateManager::Register}, | 372 {"WebApkUpdateManager", WebApkUpdateManager::Register}, |
371 {"WebappRegistry", WebappRegistry::RegisterWebappRegistry}, | 373 {"WebappRegistry", WebappRegistry::RegisterWebappRegistry}, |
372 {"WebContentsFactory", RegisterWebContentsFactory}, | 374 {"WebContentsFactory", RegisterWebContentsFactory}, |
373 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, | 375 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, |
374 {"WebsiteSettingsPopupAndroid", | 376 {"WebsiteSettingsPopupAndroid", |
375 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, | 377 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, |
376 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) | 378 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) |
377 {"PrintingContext", | 379 {"PrintingContext", |
378 printing::PrintingContextAndroid::RegisterPrintingContext}, | 380 printing::PrintingContextAndroid::RegisterPrintingContext}, |
379 #endif | 381 #endif |
380 }; | 382 }; |
381 | 383 |
382 bool RegisterBrowserJNI(JNIEnv* env) { | 384 bool RegisterBrowserJNI(JNIEnv* env) { |
383 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 385 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
384 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 386 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
385 arraysize(kChromeRegisteredMethods)); | 387 arraysize(kChromeRegisteredMethods)); |
386 } | 388 } |
387 | 389 |
388 } // namespace android | 390 } // namespace android |
389 } // namespace chrome | 391 } // namespace chrome |
OLD | NEW |