| 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/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "chrome/browser/android/bookmarks_bridge.h" | 10 #include "chrome/browser/android/bookmarks_bridge.h" |
| 11 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" | 11 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" |
| 12 #include "chrome/browser/android/chromium_application.h" | 12 #include "chrome/browser/android/chromium_application.h" |
| 13 #include "chrome/browser/android/content_view_util.h" | 13 #include "chrome/browser/android/content_view_util.h" |
| 14 #include "chrome/browser/android/dev_tools_server.h" | 14 #include "chrome/browser/android/dev_tools_server.h" |
| 15 #include "chrome/browser/android/favicon_helper.h" | 15 #include "chrome/browser/android/favicon_helper.h" |
| 16 #include "chrome/browser/android/field_trial_helper.h" | 16 #include "chrome/browser/android/field_trial_helper.h" |
| 17 #include "chrome/browser/android/foreign_session_helper.h" | 17 #include "chrome/browser/android/foreign_session_helper.h" |
| 18 #include "chrome/browser/android/intent_helper.h" | 18 #include "chrome/browser/android/intent_helper.h" |
| 19 #include "chrome/browser/android/most_visited_sites.h" | 19 #include "chrome/browser/android/most_visited_sites.h" |
| 20 #include "chrome/browser/android/new_tab_page_prefs.h" |
| 20 #include "chrome/browser/android/omnibox/omnibox_prerender.h" | 21 #include "chrome/browser/android/omnibox/omnibox_prerender.h" |
| 21 #include "chrome/browser/android/provider/chrome_browser_provider.h" | 22 #include "chrome/browser/android/provider/chrome_browser_provider.h" |
| 22 #include "chrome/browser/android/recently_closed_tabs_bridge.h" | 23 #include "chrome/browser/android/recently_closed_tabs_bridge.h" |
| 23 #include "chrome/browser/android/shortcut_helper.h" | 24 #include "chrome/browser/android/shortcut_helper.h" |
| 24 #include "chrome/browser/android/signin/signin_manager_android.h" | 25 #include "chrome/browser/android/signin/signin_manager_android.h" |
| 25 #include "chrome/browser/android/tab_android.h" | 26 #include "chrome/browser/android/tab_android.h" |
| 26 #include "chrome/browser/android/uma_utils.h" | 27 #include "chrome/browser/android/uma_utils.h" |
| 27 #include "chrome/browser/android/url_utilities.h" | 28 #include "chrome/browser/android/url_utilities.h" |
| 28 #include "chrome/browser/autofill/android/personal_data_manager_android.h" | 29 #include "chrome/browser/autofill/android/personal_data_manager_android.h" |
| 29 #include "chrome/browser/history/android/sqlite_cursor.h" | 30 #include "chrome/browser/history/android/sqlite_cursor.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 { "ForeignSessionHelper", | 98 { "ForeignSessionHelper", |
| 98 ForeignSessionHelper::RegisterForeignSessionHelper }, | 99 ForeignSessionHelper::RegisterForeignSessionHelper }, |
| 99 { "InfoBarContainer", RegisterInfoBarContainer }, | 100 { "InfoBarContainer", RegisterInfoBarContainer }, |
| 100 { "ShortcutHelper", ShortcutHelper::RegisterShortcutHelper }, | 101 { "ShortcutHelper", ShortcutHelper::RegisterShortcutHelper }, |
| 101 { "IntentHelper", RegisterIntentHelper }, | 102 { "IntentHelper", RegisterIntentHelper }, |
| 102 { "JavascriptAppModalDialog", | 103 { "JavascriptAppModalDialog", |
| 103 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog }, | 104 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog }, |
| 104 { "MostVisitedSites", RegisterMostVisitedSites }, | 105 { "MostVisitedSites", RegisterMostVisitedSites }, |
| 105 { "NativeInfoBar", RegisterNativeInfoBar }, | 106 { "NativeInfoBar", RegisterNativeInfoBar }, |
| 106 { "NavigationPopup", NavigationPopup::RegisterNavigationPopup }, | 107 { "NavigationPopup", NavigationPopup::RegisterNavigationPopup }, |
| 108 { "NewTabPagePrefs", |
| 109 NewTabPagePrefs::RegisterNewTabPagePrefs }, |
| 107 { "OmniboxPrerender", RegisterOmniboxPrerender }, | 110 { "OmniboxPrerender", RegisterOmniboxPrerender }, |
| 108 { "PersonalDataManagerAndroid", | 111 { "PersonalDataManagerAndroid", |
| 109 autofill::PersonalDataManagerAndroid::Register }, | 112 autofill::PersonalDataManagerAndroid::Register }, |
| 110 { "ProfileAndroid", ProfileAndroid::RegisterProfileAndroid }, | 113 { "ProfileAndroid", ProfileAndroid::RegisterProfileAndroid }, |
| 111 { "ProfileSyncService", ProfileSyncServiceAndroid::Register }, | 114 { "ProfileSyncService", ProfileSyncServiceAndroid::Register }, |
| 112 { "RecentlyClosedBridge", RecentlyClosedTabsBridge::Register }, | 115 { "RecentlyClosedBridge", RecentlyClosedTabsBridge::Register }, |
| 113 { "SigninManager", SigninManagerAndroid::Register }, | 116 { "SigninManager", SigninManagerAndroid::Register }, |
| 114 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor }, | 117 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor }, |
| 115 { "SSLClientCertificateRequest", RegisterSSLClientCertificateRequestAndroid }, | 118 { "SSLClientCertificateRequest", RegisterSSLClientCertificateRequestAndroid }, |
| 116 { "StartupMetricUtils", RegisterStartupMetricUtils }, | 119 { "StartupMetricUtils", RegisterStartupMetricUtils }, |
| 117 { "TabAndroid", TabAndroid::RegisterTabAndroid }, | 120 { "TabAndroid", TabAndroid::RegisterTabAndroid }, |
| 118 { "TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register }, | 121 { "TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register }, |
| 119 { "TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate }, | 122 { "TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate }, |
| 120 { "TtsPlatformImpl", TtsPlatformImplAndroid::Register }, | 123 { "TtsPlatformImpl", TtsPlatformImplAndroid::Register }, |
| 121 { "UrlUtilities", RegisterUrlUtilities }, | 124 { "UrlUtilities", RegisterUrlUtilities }, |
| 122 { "ValidationMessageBubbleAndroid", | 125 { "ValidationMessageBubbleAndroid", |
| 123 ValidationMessageBubbleAndroid::Register }, | 126 ValidationMessageBubbleAndroid::Register }, |
| 124 { "WebsiteSettingsPopupAndroid", | 127 { "WebsiteSettingsPopupAndroid", |
| 125 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, | 128 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, |
| 126 }; | 129 }; |
| 127 | 130 |
| 128 bool RegisterJni(JNIEnv* env) { | 131 bool RegisterJni(JNIEnv* env) { |
| 129 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 132 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
| 130 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 133 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
| 131 arraysize(kChromeRegisteredMethods)); | 134 arraysize(kChromeRegisteredMethods)); |
| 132 } | 135 } |
| 133 | 136 |
| 134 } // namespace android | 137 } // namespace android |
| 135 } // namespace chrome | 138 } // namespace chrome |
| OLD | NEW |