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/accessibility_util.h" | 10 #include "chrome/browser/android/accessibility_util.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "chrome/browser/android/profiles/profile_downloader_android.h" | 29 #include "chrome/browser/android/profiles/profile_downloader_android.h" |
30 #include "chrome/browser/android/provider/chrome_browser_provider.h" | 30 #include "chrome/browser/android/provider/chrome_browser_provider.h" |
31 #include "chrome/browser/android/recently_closed_tabs_bridge.h" | 31 #include "chrome/browser/android/recently_closed_tabs_bridge.h" |
32 #include "chrome/browser/android/shortcut_helper.h" | 32 #include "chrome/browser/android/shortcut_helper.h" |
33 #include "chrome/browser/android/signin/account_management_screen_helper.h" | 33 #include "chrome/browser/android/signin/account_management_screen_helper.h" |
34 #include "chrome/browser/android/signin/signin_manager_android.h" | 34 #include "chrome/browser/android/signin/signin_manager_android.h" |
35 #include "chrome/browser/android/tab_android.h" | 35 #include "chrome/browser/android/tab_android.h" |
36 #include "chrome/browser/android/uma_bridge.h" | 36 #include "chrome/browser/android/uma_bridge.h" |
37 #include "chrome/browser/android/uma_utils.h" | 37 #include "chrome/browser/android/uma_utils.h" |
38 #include "chrome/browser/android/url_utilities.h" | 38 #include "chrome/browser/android/url_utilities.h" |
| 39 #include "chrome/browser/android/voice_search_tab_helper.h" |
39 #include "chrome/browser/autofill/android/personal_data_manager_android.h" | 40 #include "chrome/browser/autofill/android/personal_data_manager_android.h" |
40 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" | 41 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" |
41 #include "chrome/browser/dom_distiller/tab_utils_android.h" | 42 #include "chrome/browser/dom_distiller/tab_utils_android.h" |
42 #include "chrome/browser/history/android/sqlite_cursor.h" | 43 #include "chrome/browser/history/android/sqlite_cursor.h" |
43 #include "chrome/browser/invalidation/invalidation_controller_android.h" | 44 #include "chrome/browser/invalidation/invalidation_controller_android.h" |
44 #include "chrome/browser/lifetime/application_lifetime_android.h" | 45 #include "chrome/browser/lifetime/application_lifetime_android.h" |
45 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h" | 46 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h" |
46 #include "chrome/browser/prerender/external_prerender_handler_android.h" | 47 #include "chrome/browser/prerender/external_prerender_handler_android.h" |
47 #include "chrome/browser/profiles/profile_android.h" | 48 #include "chrome/browser/profiles/profile_android.h" |
48 #include "chrome/browser/search_engines/template_url_service_android.h" | 49 #include "chrome/browser/search_engines/template_url_service_android.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 { "StartupMetricUtils", RegisterStartupMetricUtils }, | 171 { "StartupMetricUtils", RegisterStartupMetricUtils }, |
171 { "TabAndroid", TabAndroid::RegisterTabAndroid }, | 172 { "TabAndroid", TabAndroid::RegisterTabAndroid }, |
172 { "TabModelBase", RegisterTabModelBase}, | 173 { "TabModelBase", RegisterTabModelBase}, |
173 { "TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register }, | 174 { "TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register }, |
174 { "ToolbarModelAndroid", ToolbarModelAndroid::RegisterToolbarModelAndroid }, | 175 { "ToolbarModelAndroid", ToolbarModelAndroid::RegisterToolbarModelAndroid }, |
175 { "TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate }, | 176 { "TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate }, |
176 { "TtsPlatformImpl", TtsPlatformImplAndroid::Register }, | 177 { "TtsPlatformImpl", TtsPlatformImplAndroid::Register }, |
177 { "UmaBridge", RegisterUmaBridge }, | 178 { "UmaBridge", RegisterUmaBridge }, |
178 { "UrlUtilities", RegisterUrlUtilities }, | 179 { "UrlUtilities", RegisterUrlUtilities }, |
179 { "Variations", variations::android::RegisterVariations }, | 180 { "Variations", variations::android::RegisterVariations }, |
| 181 { "VoiceSearchTabHelper", RegisterVoiceSearchTabHelper }, |
180 { "WebsiteSettingsPopupAndroid", | 182 { "WebsiteSettingsPopupAndroid", |
181 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, | 183 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, |
182 #if defined(ENABLE_PRINTING) && !defined(ENABLE_FULL_PRINTING) | 184 #if defined(ENABLE_PRINTING) && !defined(ENABLE_FULL_PRINTING) |
183 { "PrintingContext", | 185 { "PrintingContext", |
184 printing::PrintingContextAndroid::RegisterPrintingContext}, | 186 printing::PrintingContextAndroid::RegisterPrintingContext}, |
185 #endif | 187 #endif |
186 }; | 188 }; |
187 | 189 |
188 bool RegisterJni(JNIEnv* env) { | 190 bool RegisterJni(JNIEnv* env) { |
189 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 191 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
190 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 192 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
191 arraysize(kChromeRegisteredMethods)); | 193 arraysize(kChromeRegisteredMethods)); |
192 } | 194 } |
193 | 195 |
194 } // namespace android | 196 } // namespace android |
195 } // namespace chrome | 197 } // namespace chrome |
OLD | NEW |