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

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

Issue 1396443002: Add the JNI code in order to let Java use the InterestsFetcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/after_startup_task_utils_android.h" 10 #include "chrome/browser/after_startup_task_utils_android.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #include "chrome/browser/android/url_utilities.h" 78 #include "chrome/browser/android/url_utilities.h"
79 #include "chrome/browser/android/voice_search_tab_helper.h" 79 #include "chrome/browser/android/voice_search_tab_helper.h"
80 #include "chrome/browser/android/warmup_manager.h" 80 #include "chrome/browser/android/warmup_manager.h"
81 #include "chrome/browser/android/web_contents_factory.h" 81 #include "chrome/browser/android/web_contents_factory.h"
82 #include "chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h" 82 #include "chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h"
83 #include "chrome/browser/android/webapps/webapp_registry.h" 83 #include "chrome/browser/android/webapps/webapp_registry.h"
84 #include "chrome/browser/autofill/android/personal_data_manager_android.h" 84 #include "chrome/browser/autofill/android/personal_data_manager_android.h"
85 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" 85 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h"
86 #include "chrome/browser/dom_distiller/tab_utils_android.h" 86 #include "chrome/browser/dom_distiller/tab_utils_android.h"
87 #include "chrome/browser/history/android/sqlite_cursor.h" 87 #include "chrome/browser/history/android/sqlite_cursor.h"
88 #include "chrome/browser/interests/android/interests_service.h"
88 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" 89 #include "chrome/browser/invalidation/invalidation_service_factory_android.h"
89 #include "chrome/browser/lifetime/application_lifetime_android.h" 90 #include "chrome/browser/lifetime/application_lifetime_android.h"
90 #include "chrome/browser/media/android/remote/record_cast_action.h" 91 #include "chrome/browser/media/android/remote/record_cast_action.h"
91 #include "chrome/browser/media/android/remote/remote_media_player_bridge.h" 92 #include "chrome/browser/media/android/remote/remote_media_player_bridge.h"
92 #include "chrome/browser/media/android/router/media_router_android.h" 93 #include "chrome/browser/media/android/router/media_router_android.h"
93 #include "chrome/browser/media/android/router/media_router_dialog_controller_and roid.h" 94 #include "chrome/browser/media/android/router/media_router_dialog_controller_and roid.h"
94 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h" 95 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h"
95 #include "chrome/browser/notifications/notification_ui_manager_android.h" 96 #include "chrome/browser/notifications/notification_ui_manager_android.h"
96 #include "chrome/browser/password_manager/account_chooser_dialog_android.h" 97 #include "chrome/browser/password_manager/account_chooser_dialog_android.h"
97 #include "chrome/browser/password_manager/credential_android.h" 98 #include "chrome/browser/password_manager/credential_android.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 {"FindInPageBridge", FindInPageBridge::RegisterFindInPageBridge}, 249 {"FindInPageBridge", FindInPageBridge::RegisterFindInPageBridge},
249 {"FontSizePrefsAndroid", FontSizePrefsAndroid::Register}, 250 {"FontSizePrefsAndroid", FontSizePrefsAndroid::Register},
250 {"ForeignSessionHelper", 251 {"ForeignSessionHelper",
251 ForeignSessionHelper::RegisterForeignSessionHelper}, 252 ForeignSessionHelper::RegisterForeignSessionHelper},
252 {"FullscreenInfoBarDelegate", 253 {"FullscreenInfoBarDelegate",
253 FullscreenInfoBarDelegate::RegisterFullscreenInfoBarDelegate}, 254 FullscreenInfoBarDelegate::RegisterFullscreenInfoBarDelegate},
254 {"GeneratedPasswordSavedInfoBarDelegate", 255 {"GeneratedPasswordSavedInfoBarDelegate",
255 RegisterGeneratedPasswordSavedInfoBarDelegate}, 256 RegisterGeneratedPasswordSavedInfoBarDelegate},
256 {"HistoryReportJniBridge", history_report::RegisterHistoryReportJniBridge}, 257 {"HistoryReportJniBridge", history_report::RegisterHistoryReportJniBridge},
257 {"InfoBarContainer", RegisterInfoBarContainer}, 258 {"InfoBarContainer", RegisterInfoBarContainer},
259 {"InterestsService", InterestsService::Register},
258 {"InvalidationServiceFactory", 260 {"InvalidationServiceFactory",
259 invalidation::InvalidationServiceFactoryAndroid::Register}, 261 invalidation::InvalidationServiceFactoryAndroid::Register},
260 {"ShortcutHelper", ShortcutHelper::RegisterShortcutHelper}, 262 {"ShortcutHelper", ShortcutHelper::RegisterShortcutHelper},
261 {"IntentHelper", RegisterIntentHelper}, 263 {"IntentHelper", RegisterIntentHelper},
262 {"JavaExceptionReporter", RegisterJavaExceptionReporterJni}, 264 {"JavaExceptionReporter", RegisterJavaExceptionReporterJni},
263 {"JavascriptAppModalDialog", 265 {"JavascriptAppModalDialog",
264 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog}, 266 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog},
265 {"LargeIconBridge", LargeIconBridge::RegisterLargeIconBridge}, 267 {"LargeIconBridge", LargeIconBridge::RegisterLargeIconBridge},
266 {"LaunchMetrics", metrics::RegisterLaunchMetrics}, 268 {"LaunchMetrics", metrics::RegisterLaunchMetrics},
267 {"LayerTitleCache", chrome::android::RegisterLayerTitleCache}, 269 {"LayerTitleCache", chrome::android::RegisterLayerTitleCache},
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 }; 348 };
347 349
348 bool RegisterBrowserJNI(JNIEnv* env) { 350 bool RegisterBrowserJNI(JNIEnv* env) {
349 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 351 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
350 return RegisterNativeMethods(env, kChromeRegisteredMethods, 352 return RegisterNativeMethods(env, kChromeRegisteredMethods,
351 arraysize(kChromeRegisteredMethods)); 353 arraysize(kChromeRegisteredMethods));
352 } 354 }
353 355
354 } // namespace android 356 } // namespace android
355 } // namespace chrome 357 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698