Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: chrome/browser/android/chrome_jni_registrar.cc

Issue 1143323005: Refactor AO2TS to make it easier to componentize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address final comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "chrome/browser/android/accessibility/font_size_prefs_android.h" 10 #include "chrome/browser/android/accessibility/font_size_prefs_android.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" 82 #include "chrome/browser/invalidation/invalidation_service_factory_android.h"
83 #include "chrome/browser/lifetime/application_lifetime_android.h" 83 #include "chrome/browser/lifetime/application_lifetime_android.h"
84 #include "chrome/browser/media/android/remote/record_cast_action.h" 84 #include "chrome/browser/media/android/remote/record_cast_action.h"
85 #include "chrome/browser/media/android/remote/remote_media_player_bridge.h" 85 #include "chrome/browser/media/android/remote/remote_media_player_bridge.h"
86 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h" 86 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h"
87 #include "chrome/browser/notifications/notification_ui_manager_android.h" 87 #include "chrome/browser/notifications/notification_ui_manager_android.h"
88 #include "chrome/browser/password_manager/credential_android.h" 88 #include "chrome/browser/password_manager/credential_android.h"
89 #include "chrome/browser/prerender/external_prerender_handler_android.h" 89 #include "chrome/browser/prerender/external_prerender_handler_android.h"
90 #include "chrome/browser/profiles/profile_android.h" 90 #include "chrome/browser/profiles/profile_android.h"
91 #include "chrome/browser/search_engines/template_url_service_android.h" 91 #include "chrome/browser/search_engines/template_url_service_android.h"
92 #include "chrome/browser/signin/android_profile_oauth2_token_service.h" 92 #include "chrome/browser/signin/oauth2_token_service_delegate_android.h"
93 #include "chrome/browser/speech/tts_android.h" 93 #include "chrome/browser/speech/tts_android.h"
94 #include "chrome/browser/ssl/connection_security_android.h" 94 #include "chrome/browser/ssl/connection_security_android.h"
95 #include "chrome/browser/supervised_user/child_accounts/child_account_feedback_r eporter_android.h" 95 #include "chrome/browser/supervised_user/child_accounts/child_account_feedback_r eporter_android.h"
96 #include "chrome/browser/supervised_user/child_accounts/child_account_service_an droid.h" 96 #include "chrome/browser/supervised_user/child_accounts/child_account_service_an droid.h"
97 #include "chrome/browser/sync/profile_sync_service_android.h" 97 #include "chrome/browser/sync/profile_sync_service_android.h"
98 #include "chrome/browser/ui/android/autofill/autofill_dialog_controller_android. h" 98 #include "chrome/browser/ui/android/autofill/autofill_dialog_controller_android. h"
99 #include "chrome/browser/ui/android/autofill/autofill_dialog_result.h" 99 #include "chrome/browser/ui/android/autofill/autofill_dialog_result.h"
100 #include "chrome/browser/ui/android/autofill/autofill_keyboard_accessory_view.h" 100 #include "chrome/browser/ui/android/autofill/autofill_keyboard_accessory_view.h"
101 #include "chrome/browser/ui/android/autofill/autofill_logger_android.h" 101 #include "chrome/browser/ui/android/autofill/autofill_logger_android.h"
102 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h" 102 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 {"GCMDriver", gcm::android::RegisterGCMDriverJni}, 151 {"GCMDriver", gcm::android::RegisterGCMDriverJni},
152 {"Invalidation", invalidation::android::RegisterInvalidationJni}, 152 {"Invalidation", invalidation::android::RegisterInvalidationJni},
153 {"NavigationInterception", 153 {"NavigationInterception",
154 navigation_interception::RegisterNavigationInterceptionJni}, 154 navigation_interception::RegisterNavigationInterceptionJni},
155 {"WebContentsDelegateAndroid", 155 {"WebContentsDelegateAndroid",
156 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni}, 156 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni},
157 // Register JNI for chrome classes. 157 // Register JNI for chrome classes.
158 {"AccessibilityUtils", AccessibilityUtil::Register}, 158 {"AccessibilityUtils", AccessibilityUtil::Register},
159 {"AccountChooserInfoBar", RegisterAccountChooserInfoBar}, 159 {"AccountChooserInfoBar", RegisterAccountChooserInfoBar},
160 {"AccountManagementScreenHelper", AccountManagementScreenHelper::Register}, 160 {"AccountManagementScreenHelper", AccountManagementScreenHelper::Register},
161 {"AndroidProfileOAuth2TokenService",
162 AndroidProfileOAuth2TokenService::Register},
163 {"AnswersImageBridge", RegisterAnswersImageBridge}, 161 {"AnswersImageBridge", RegisterAnswersImageBridge},
164 {"AppBannerInfoBarAndroid", RegisterAppBannerInfoBarAndroid}, 162 {"AppBannerInfoBarAndroid", RegisterAppBannerInfoBarAndroid},
165 {"AppBannerInfoBarDelegateAndroid", 163 {"AppBannerInfoBarDelegateAndroid",
166 banners::RegisterAppBannerInfoBarDelegateAndroid}, 164 banners::RegisterAppBannerInfoBarDelegateAndroid},
167 {"AppBannerManagerAndroid", banners::AppBannerManagerAndroid::Register}, 165 {"AppBannerManagerAndroid", banners::AppBannerManagerAndroid::Register},
168 {"ApplicationLifetime", RegisterApplicationLifetimeAndroid}, 166 {"ApplicationLifetime", RegisterApplicationLifetimeAndroid},
169 {"AutocompleteControllerAndroid", RegisterAutocompleteControllerAndroid}, 167 {"AutocompleteControllerAndroid", RegisterAutocompleteControllerAndroid},
170 {"AutofillDialogControllerAndroid", 168 {"AutofillDialogControllerAndroid",
171 autofill::AutofillDialogControllerAndroid:: 169 autofill::AutofillDialogControllerAndroid::
172 RegisterAutofillDialogControllerAndroid}, 170 RegisterAutofillDialogControllerAndroid},
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 {"LaunchMetrics", metrics::RegisterLaunchMetrics}, 241 {"LaunchMetrics", metrics::RegisterLaunchMetrics},
244 {"LayerTitleCache", chrome::android::RegisterLayerTitleCache}, 242 {"LayerTitleCache", chrome::android::RegisterLayerTitleCache},
245 {"LocationSettings", LocationSettingsImpl::Register}, 243 {"LocationSettings", LocationSettingsImpl::Register},
246 {"LogoBridge", RegisterLogoBridge}, 244 {"LogoBridge", RegisterLogoBridge},
247 {"MostVisitedSites", MostVisitedSites::Register}, 245 {"MostVisitedSites", MostVisitedSites::Register},
248 {"NativeInfoBar", RegisterNativeInfoBar}, 246 {"NativeInfoBar", RegisterNativeInfoBar},
249 {"NavigationPopup", NavigationPopup::RegisterNavigationPopup}, 247 {"NavigationPopup", NavigationPopup::RegisterNavigationPopup},
250 {"NewTabPagePrefs", NewTabPagePrefs::RegisterNewTabPagePrefs}, 248 {"NewTabPagePrefs", NewTabPagePrefs::RegisterNewTabPagePrefs},
251 {"NotificationUIManager", 249 {"NotificationUIManager",
252 NotificationUIManagerAndroid::RegisterNotificationUIManager}, 250 NotificationUIManagerAndroid::RegisterNotificationUIManager},
251 {"OAuth2TokenServiceDelegateAndroid",
252 OAuth2TokenServiceDelegateAndroid::Register},
253 {"OmniboxPrerender", RegisterOmniboxPrerender}, 253 {"OmniboxPrerender", RegisterOmniboxPrerender},
254 {"OmniboxUrlEmphasizer", 254 {"OmniboxUrlEmphasizer",
255 OmniboxUrlEmphasizer::RegisterOmniboxUrlEmphasizer}, 255 OmniboxUrlEmphasizer::RegisterOmniboxUrlEmphasizer},
256 {"OmniboxViewUtil", OmniboxViewUtil::RegisterOmniboxViewUtil}, 256 {"OmniboxViewUtil", OmniboxViewUtil::RegisterOmniboxViewUtil},
257 {"PartnerBookmarksReader", 257 {"PartnerBookmarksReader",
258 PartnerBookmarksReader::RegisterPartnerBookmarksReader}, 258 PartnerBookmarksReader::RegisterPartnerBookmarksReader},
259 {"PasswordGenerationPopup", 259 {"PasswordGenerationPopup",
260 autofill::PasswordGenerationPopupViewAndroid::Register}, 260 autofill::PasswordGenerationPopupViewAndroid::Register},
261 {"PasswordUIViewAndroid", 261 {"PasswordUIViewAndroid",
262 PasswordUIViewAndroid::RegisterPasswordUIViewAndroid}, 262 PasswordUIViewAndroid::RegisterPasswordUIViewAndroid},
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 }; 310 };
311 311
312 bool RegisterBrowserJNI(JNIEnv* env) { 312 bool RegisterBrowserJNI(JNIEnv* env) {
313 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 313 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
314 return RegisterNativeMethods(env, kChromeRegisteredMethods, 314 return RegisterNativeMethods(env, kChromeRegisteredMethods,
315 arraysize(kChromeRegisteredMethods)); 315 arraysize(kChromeRegisteredMethods));
316 } 316 }
317 317
318 } // namespace android 318 } // namespace android
319 } // namespace chrome 319 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698