| 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/content_view_util.h" | 12 #include "chrome/browser/android/content_view_util.h" |
| 13 #include "chrome/browser/android/dev_tools_server.h" | 13 #include "chrome/browser/android/dev_tools_server.h" |
| 14 #include "chrome/browser/android/favicon_helper.h" | 14 #include "chrome/browser/android/favicon_helper.h" |
| 15 #include "chrome/browser/android/field_trial_helper.h" | 15 #include "chrome/browser/android/field_trial_helper.h" |
| 16 #include "chrome/browser/android/foreign_session_helper.h" | 16 #include "chrome/browser/android/foreign_session_helper.h" |
| 17 #include "chrome/browser/android/intent_helper.h" | 17 #include "chrome/browser/android/intent_helper.h" |
| 18 #include "chrome/browser/android/most_visited_sites.h" | 18 #include "chrome/browser/android/most_visited_sites.h" |
| 19 #include "chrome/browser/android/omnibox/omnibox_prerender.h" | 19 #include "chrome/browser/android/omnibox/omnibox_prerender.h" |
| 20 #include "chrome/browser/android/provider/chrome_browser_provider.h" | 20 #include "chrome/browser/android/provider/chrome_browser_provider.h" |
| 21 #include "chrome/browser/android/shortcut_helper.h" | 21 #include "chrome/browser/android/shortcut_helper.h" |
| 22 #include "chrome/browser/android/signin/signin_manager_android.h" | 22 #include "chrome/browser/android/signin/signin_manager_android.h" |
| 23 #include "chrome/browser/android/tab_android.h" | 23 #include "chrome/browser/android/tab_android.h" |
| 24 #include "chrome/browser/autofill/android/personal_data_manager_android.h" | 24 #include "chrome/browser/autofill/android/personal_data_manager_android.h" |
| 25 #include "chrome/browser/history/android/sqlite_cursor.h" | 25 #include "chrome/browser/history/android/sqlite_cursor.h" |
| 26 #include "chrome/browser/lifetime/application_lifetime_android.h" | 26 #include "chrome/browser/lifetime/application_lifetime_android.h" |
| 27 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h" |
| 27 #include "chrome/browser/profiles/profile_android.h" | 28 #include "chrome/browser/profiles/profile_android.h" |
| 28 #include "chrome/browser/search_engines/template_url_service_android.h" | 29 #include "chrome/browser/search_engines/template_url_service_android.h" |
| 29 #include "chrome/browser/signin/android_profile_oauth2_token_service.h" | 30 #include "chrome/browser/signin/android_profile_oauth2_token_service.h" |
| 30 #include "chrome/browser/speech/tts_android.h" | 31 #include "chrome/browser/speech/tts_android.h" |
| 31 #include "chrome/browser/sync/profile_sync_service_android.h" | 32 #include "chrome/browser/sync/profile_sync_service_android.h" |
| 32 #include "chrome/browser/ui/android/autofill/autofill_dialog_controller_android.
h" | 33 #include "chrome/browser/ui/android/autofill/autofill_dialog_controller_android.
h" |
| 33 #include "chrome/browser/ui/android/autofill/autofill_dialog_result.h" | 34 #include "chrome/browser/ui/android/autofill/autofill_dialog_result.h" |
| 34 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h" | 35 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h" |
| 35 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" | 36 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" |
| 36 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" | 37 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 { "IntentHelper", RegisterIntentHelper }, | 84 { "IntentHelper", RegisterIntentHelper }, |
| 84 { "JavascriptAppModalDialog", | 85 { "JavascriptAppModalDialog", |
| 85 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog }, | 86 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog }, |
| 86 { "MostVisitedSites", RegisterMostVisitedSites }, | 87 { "MostVisitedSites", RegisterMostVisitedSites }, |
| 87 { "NavigationPopup", NavigationPopup::RegisterNavigationPopup }, | 88 { "NavigationPopup", NavigationPopup::RegisterNavigationPopup }, |
| 88 { "OmniboxPrerender", RegisterOmniboxPrerender }, | 89 { "OmniboxPrerender", RegisterOmniboxPrerender }, |
| 89 { "PersonalDataManagerAndroid", | 90 { "PersonalDataManagerAndroid", |
| 90 autofill::PersonalDataManagerAndroid::Register }, | 91 autofill::PersonalDataManagerAndroid::Register }, |
| 91 { "ProfileAndroid", ProfileAndroid::RegisterProfileAndroid }, | 92 { "ProfileAndroid", ProfileAndroid::RegisterProfileAndroid }, |
| 92 { "ProfileSyncService", ProfileSyncServiceAndroid::Register }, | 93 { "ProfileSyncService", ProfileSyncServiceAndroid::Register }, |
| 94 { "DataReductionProxySettingsAndroid", |
| 95 DataReductionProxySettingsAndroid::Register }, |
| 93 { "SigninManager", SigninManagerAndroid::Register }, | 96 { "SigninManager", SigninManagerAndroid::Register }, |
| 94 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor }, | 97 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor }, |
| 95 { "SSLClientCertificateRequest", RegisterSSLClientCertificateRequestAndroid }, | 98 { "SSLClientCertificateRequest", RegisterSSLClientCertificateRequestAndroid }, |
| 96 { "TabAndroid", TabAndroid::RegisterTabAndroid }, | 99 { "TabAndroid", TabAndroid::RegisterTabAndroid }, |
| 97 { "TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register }, | 100 { "TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register }, |
| 98 { "TtsPlatformImpl", TtsPlatformImplAndroid::Register }, | 101 { "TtsPlatformImpl", TtsPlatformImplAndroid::Register }, |
| 99 { "ValidationMessageBubbleAndroid", | 102 { "ValidationMessageBubbleAndroid", |
| 100 ValidationMessageBubbleAndroid::Register }, | 103 ValidationMessageBubbleAndroid::Register }, |
| 101 { "WebsiteSettingsPopupAndroid", | 104 { "WebsiteSettingsPopupAndroid", |
| 102 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, | 105 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, |
| 103 }; | 106 }; |
| 104 | 107 |
| 105 bool RegisterJni(JNIEnv* env) { | 108 bool RegisterJni(JNIEnv* env) { |
| 106 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 109 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
| 107 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 110 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
| 108 arraysize(kChromeRegisteredMethods)); | 111 arraysize(kChromeRegisteredMethods)); |
| 109 } | 112 } |
| 110 | 113 |
| 111 } // namespace android | 114 } // namespace android |
| 112 } // namespace chrome | 115 } // namespace chrome |
| OLD | NEW |