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