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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 {"UmaSessionStats", RegisterUmaSessionStats}, | 360 {"UmaSessionStats", RegisterUmaSessionStats}, |
360 {"UrlFilterBridge", UrlFilterBridge::Register}, | 361 {"UrlFilterBridge", UrlFilterBridge::Register}, |
361 {"UrlUtilities", RegisterUrlUtilities}, | 362 {"UrlUtilities", RegisterUrlUtilities}, |
362 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, | 363 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, |
363 {"Variations", variations::android::RegisterVariations}, | 364 {"Variations", variations::android::RegisterVariations}, |
364 {"VariationsSession", chrome::android::RegisterVariationsSession}, | 365 {"VariationsSession", chrome::android::RegisterVariationsSession}, |
365 #if defined(ENABLE_VR_SHELL) | 366 #if defined(ENABLE_VR_SHELL) |
366 {"VrShell", vr_shell::RegisterVrShell}, | 367 {"VrShell", vr_shell::RegisterVrShell}, |
367 #endif | 368 #endif |
368 {"WarmupManager", RegisterWarmupManager}, | 369 {"WarmupManager", RegisterWarmupManager}, |
| 370 {"WebApkInstaller", WebApkInstaller::Register}, |
369 {"WebApkUpdateManager", WebApkUpdateManager::Register}, | 371 {"WebApkUpdateManager", WebApkUpdateManager::Register}, |
370 {"WebappRegistry", WebappRegistry::RegisterWebappRegistry}, | 372 {"WebappRegistry", WebappRegistry::RegisterWebappRegistry}, |
371 {"WebContentsFactory", RegisterWebContentsFactory}, | 373 {"WebContentsFactory", RegisterWebContentsFactory}, |
372 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, | 374 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, |
373 {"WebsiteSettingsPopupAndroid", | 375 {"WebsiteSettingsPopupAndroid", |
374 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, | 376 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, |
375 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) | 377 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) |
376 {"PrintingContext", | 378 {"PrintingContext", |
377 printing::PrintingContextAndroid::RegisterPrintingContext}, | 379 printing::PrintingContextAndroid::RegisterPrintingContext}, |
378 #endif | 380 #endif |
379 }; | 381 }; |
380 | 382 |
381 bool RegisterBrowserJNI(JNIEnv* env) { | 383 bool RegisterBrowserJNI(JNIEnv* env) { |
382 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 384 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
383 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 385 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
384 arraysize(kChromeRegisteredMethods)); | 386 arraysize(kChromeRegisteredMethods)); |
385 } | 387 } |
386 | 388 |
387 } // namespace android | 389 } // namespace android |
388 } // namespace chrome | 390 } // namespace chrome |
OLD | NEW |