| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 #include "chrome/browser/android/metrics/uma_utils.h" | 69 #include "chrome/browser/android/metrics/uma_utils.h" |
| 70 #include "chrome/browser/android/metrics/variations_session.h" | 70 #include "chrome/browser/android/metrics/variations_session.h" |
| 71 #include "chrome/browser/android/net/external_estimate_provider_android.h" | 71 #include "chrome/browser/android/net/external_estimate_provider_android.h" |
| 72 #include "chrome/browser/android/ntp/content_suggestions_notification_helper.h" | 72 #include "chrome/browser/android/ntp/content_suggestions_notification_helper.h" |
| 73 #include "chrome/browser/android/ntp/most_visited_sites_bridge.h" | 73 #include "chrome/browser/android/ntp/most_visited_sites_bridge.h" |
| 74 #include "chrome/browser/android/ntp/ntp_snippets_bridge.h" | 74 #include "chrome/browser/android/ntp/ntp_snippets_bridge.h" |
| 75 #include "chrome/browser/android/ntp/recent_tabs_page_prefs.h" | 75 #include "chrome/browser/android/ntp/recent_tabs_page_prefs.h" |
| 76 #include "chrome/browser/android/offline_pages/background_scheduler_bridge.h" | 76 #include "chrome/browser/android/offline_pages/background_scheduler_bridge.h" |
| 77 #include "chrome/browser/android/offline_pages/downloads/offline_page_download_b
ridge.h" | 77 #include "chrome/browser/android/offline_pages/downloads/offline_page_download_b
ridge.h" |
| 78 #include "chrome/browser/android/offline_pages/offline_page_bridge.h" | 78 #include "chrome/browser/android/offline_pages/offline_page_bridge.h" |
| 79 #include "chrome/browser/android/offline_pages/prefetch/prefetch_background_task
.h" |
| 79 #include "chrome/browser/android/omnibox/answers_image_bridge.h" | 80 #include "chrome/browser/android/omnibox/answers_image_bridge.h" |
| 80 #include "chrome/browser/android/omnibox/autocomplete_controller_android.h" | 81 #include "chrome/browser/android/omnibox/autocomplete_controller_android.h" |
| 81 #include "chrome/browser/android/omnibox/omnibox_prerender.h" | 82 #include "chrome/browser/android/omnibox/omnibox_prerender.h" |
| 82 #include "chrome/browser/android/password_ui_view_android.h" | 83 #include "chrome/browser/android/password_ui_view_android.h" |
| 83 #include "chrome/browser/android/payments/service_worker_payment_app_bridge.h" | 84 #include "chrome/browser/android/payments/service_worker_payment_app_bridge.h" |
| 84 #include "chrome/browser/android/physical_web/eddystone_encoder_bridge.h" | 85 #include "chrome/browser/android/physical_web/eddystone_encoder_bridge.h" |
| 85 #include "chrome/browser/android/physical_web/physical_web_data_source_android.h
" | 86 #include "chrome/browser/android/physical_web/physical_web_data_source_android.h
" |
| 86 #include "chrome/browser/android/policy/policy_auditor.h" | 87 #include "chrome/browser/android/policy/policy_auditor.h" |
| 87 #include "chrome/browser/android/precache/precache_launcher.h" | 88 #include "chrome/browser/android/precache/precache_launcher.h" |
| 88 #include "chrome/browser/android/preferences/autofill/autofill_profile_bridge.h" | 89 #include "chrome/browser/android/preferences/autofill/autofill_profile_bridge.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 {"AppBannerManagerAndroid", banners::AppBannerManagerAndroid::Register}, | 248 {"AppBannerManagerAndroid", banners::AppBannerManagerAndroid::Register}, |
| 248 {"AutocompleteControllerAndroid", RegisterAutocompleteControllerAndroid}, | 249 {"AutocompleteControllerAndroid", RegisterAutocompleteControllerAndroid}, |
| 249 {"AutofillSaveCardInfoBar", AutofillSaveCardInfoBar::Register}, | 250 {"AutofillSaveCardInfoBar", AutofillSaveCardInfoBar::Register}, |
| 250 {"AutofillKeyboardAccessory", autofill::AutofillKeyboardAccessoryView:: | 251 {"AutofillKeyboardAccessory", autofill::AutofillKeyboardAccessoryView:: |
| 251 RegisterAutofillKeyboardAccessoryView}, | 252 RegisterAutofillKeyboardAccessoryView}, |
| 252 {"AutofillPopup", | 253 {"AutofillPopup", |
| 253 autofill::AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid}, | 254 autofill::AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid}, |
| 254 {"AutofillProfileBridge", autofill::RegisterAutofillProfileBridge}, | 255 {"AutofillProfileBridge", autofill::RegisterAutofillProfileBridge}, |
| 255 {"BackgroundSchedulerBridge", | 256 {"BackgroundSchedulerBridge", |
| 256 offline_pages::android::RegisterBackgroundSchedulerBridge}, | 257 offline_pages::android::RegisterBackgroundSchedulerBridge}, |
| 258 {"PrefetchBackgroundTask", offline_pages::RegisterPrefetchBackgroundTask}, |
| 257 {"BluetoothChooserAndroid", BluetoothChooserAndroid::Register}, | 259 {"BluetoothChooserAndroid", BluetoothChooserAndroid::Register}, |
| 258 {"BookmarkBridge", BookmarkBridge::RegisterBookmarkBridge}, | 260 {"BookmarkBridge", BookmarkBridge::RegisterBookmarkBridge}, |
| 259 {"BrowsingDataBridge", RegisterBrowsingDataBridge}, | 261 {"BrowsingDataBridge", RegisterBrowsingDataBridge}, |
| 260 {"BrowsingDataCounterBridge", BrowsingDataCounterBridge::Register}, | 262 {"BrowsingDataCounterBridge", BrowsingDataCounterBridge::Register}, |
| 261 {"BrowsingHistoryBridge", RegisterBrowsingHistoryBridge}, | 263 {"BrowsingHistoryBridge", RegisterBrowsingHistoryBridge}, |
| 262 {"CardUnmaskPrompt", autofill::CardUnmaskPromptViewAndroid::Register}, | 264 {"CardUnmaskPrompt", autofill::CardUnmaskPromptViewAndroid::Register}, |
| 263 {"CertificateViewer", RegisterCertificateViewer}, | 265 {"CertificateViewer", RegisterCertificateViewer}, |
| 264 {"CertificateChainHelper", RegisterCertificateChainHelper}, | 266 {"CertificateChainHelper", RegisterCertificateChainHelper}, |
| 265 {"ChildAccountService", RegisterChildAccountService}, | 267 {"ChildAccountService", RegisterChildAccountService}, |
| 266 {"ChromeApplication", chrome::android::ChromeApplication::RegisterBindings}, | 268 {"ChromeApplication", chrome::android::ChromeApplication::RegisterBindings}, |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 #endif | 459 #endif |
| 458 }; | 460 }; |
| 459 | 461 |
| 460 bool RegisterBrowserJNI(JNIEnv* env) { | 462 bool RegisterBrowserJNI(JNIEnv* env) { |
| 461 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 463 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
| 462 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 464 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
| 463 arraysize(kChromeRegisteredMethods)); | 465 arraysize(kChromeRegisteredMethods)); |
| 464 } | 466 } |
| 465 | 467 |
| 466 } // namespace android | 468 } // namespace android |
| OLD | NEW |