| 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/webapps/add_to_homescreen_dialog_helper.h" | 98 #include "chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h" |
| 99 #include "chrome/browser/android/webapps/manifest_upgrade_detector.h" |
| 99 #include "chrome/browser/android/webapps/webapp_registry.h" | 100 #include "chrome/browser/android/webapps/webapp_registry.h" |
| 100 #include "chrome/browser/autofill/android/personal_data_manager_android.h" | 101 #include "chrome/browser/autofill/android/personal_data_manager_android.h" |
| 101 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" | 102 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" |
| 102 #include "chrome/browser/dom_distiller/tab_utils_android.h" | 103 #include "chrome/browser/dom_distiller/tab_utils_android.h" |
| 103 #include "chrome/browser/history/android/sqlite_cursor.h" | 104 #include "chrome/browser/history/android/sqlite_cursor.h" |
| 104 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" | 105 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" |
| 105 #include "chrome/browser/lifetime/application_lifetime_android.h" | 106 #include "chrome/browser/lifetime/application_lifetime_android.h" |
| 106 #include "chrome/browser/media/android/cdm/media_drm_credential_manager.h" | 107 #include "chrome/browser/media/android/cdm/media_drm_credential_manager.h" |
| 107 #include "chrome/browser/media/android/remote/record_cast_action.h" | 108 #include "chrome/browser/media/android/remote/record_cast_action.h" |
| 108 #include "chrome/browser/media/android/remote/remote_media_player_bridge.h" | 109 #include "chrome/browser/media/android/remote/remote_media_player_bridge.h" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 {"ShortcutHelper", ShortcutHelper::RegisterShortcutHelper}, | 297 {"ShortcutHelper", ShortcutHelper::RegisterShortcutHelper}, |
| 297 {"IntentHelper", RegisterIntentHelper}, | 298 {"IntentHelper", RegisterIntentHelper}, |
| 298 {"JavaExceptionReporter", RegisterJavaExceptionReporterJni}, | 299 {"JavaExceptionReporter", RegisterJavaExceptionReporterJni}, |
| 299 {"JavascriptAppModalDialog", | 300 {"JavascriptAppModalDialog", |
| 300 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog}, | 301 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog}, |
| 301 {"LargeIconBridge", LargeIconBridge::RegisterLargeIconBridge}, | 302 {"LargeIconBridge", LargeIconBridge::RegisterLargeIconBridge}, |
| 302 {"LaunchMetrics", metrics::RegisterLaunchMetrics}, | 303 {"LaunchMetrics", metrics::RegisterLaunchMetrics}, |
| 303 {"LayerTitleCache", chrome::android::RegisterLayerTitleCache}, | 304 {"LayerTitleCache", chrome::android::RegisterLayerTitleCache}, |
| 304 {"LocationSettings", LocationSettingsImpl::Register}, | 305 {"LocationSettings", LocationSettingsImpl::Register}, |
| 305 {"LogoBridge", RegisterLogoBridge}, | 306 {"LogoBridge", RegisterLogoBridge}, |
| 307 {"ManifestUpgradeDetector", ManifestUpgradeDetector::Register}, |
| 306 {"MediaDrmCredentialManager", | 308 {"MediaDrmCredentialManager", |
| 307 MediaDrmCredentialManager::RegisterMediaDrmCredentialManager}, | 309 MediaDrmCredentialManager::RegisterMediaDrmCredentialManager}, |
| 308 {"MostVisitedSites", MostVisitedSitesBridge::Register}, | 310 {"MostVisitedSites", MostVisitedSitesBridge::Register}, |
| 309 {"NativeInfoBar", RegisterNativeInfoBar}, | 311 {"NativeInfoBar", RegisterNativeInfoBar}, |
| 310 {"ExternalEstimateProviderAndroid", | 312 {"ExternalEstimateProviderAndroid", |
| 311 RegisterExternalEstimateProviderAndroid}, | 313 RegisterExternalEstimateProviderAndroid}, |
| 312 {"NewTabPagePrefs", NewTabPagePrefs::RegisterNewTabPagePrefs}, | 314 {"NewTabPagePrefs", NewTabPagePrefs::RegisterNewTabPagePrefs}, |
| 313 {"NotificationPlatformBridge", | 315 {"NotificationPlatformBridge", |
| 314 NotificationPlatformBridgeAndroid::RegisterNotificationPlatformBridge}, | 316 NotificationPlatformBridgeAndroid::RegisterNotificationPlatformBridge}, |
| 315 {"NTPSnippetsBridge", NTPSnippetsBridge::Register}, | 317 {"NTPSnippetsBridge", NTPSnippetsBridge::Register}, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 }; | 399 }; |
| 398 | 400 |
| 399 bool RegisterBrowserJNI(JNIEnv* env) { | 401 bool RegisterBrowserJNI(JNIEnv* env) { |
| 400 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 402 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
| 401 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 403 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
| 402 arraysize(kChromeRegisteredMethods)); | 404 arraysize(kChromeRegisteredMethods)); |
| 403 } | 405 } |
| 404 | 406 |
| 405 } // namespace android | 407 } // namespace android |
| 406 } // namespace chrome | 408 } // namespace chrome |
| OLD | NEW |