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/macros.h" | 9 #include "base/macros.h" |
10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 #include "components/dom_distiller/content/browser/android/content_jni_registrar
.h" | 162 #include "components/dom_distiller/content/browser/android/content_jni_registrar
.h" |
163 #include "components/dom_distiller/core/android/core_jni_registrar.h" | 163 #include "components/dom_distiller/core/android/core_jni_registrar.h" |
164 #include "components/gcm_driver/android/component_jni_registrar.h" | 164 #include "components/gcm_driver/android/component_jni_registrar.h" |
165 #include "components/gcm_driver/instance_id/android/component_jni_registrar.h" | 165 #include "components/gcm_driver/instance_id/android/component_jni_registrar.h" |
166 #include "components/invalidation/impl/android/component_jni_registrar.h" | 166 #include "components/invalidation/impl/android/component_jni_registrar.h" |
167 #include "components/payments/android/payments_jni_registrar.h" | 167 #include "components/payments/android/payments_jni_registrar.h" |
168 #include "components/policy/core/browser/android/component_jni_registrar.h" | 168 #include "components/policy/core/browser/android/component_jni_registrar.h" |
169 #include "components/safe_json/android/component_jni_registrar.h" | 169 #include "components/safe_json/android/component_jni_registrar.h" |
170 #include "components/signin/core/browser/android/component_jni_registrar.h" | 170 #include "components/signin/core/browser/android/component_jni_registrar.h" |
171 #include "components/spellcheck/browser/android/component_jni_registrar.h" | 171 #include "components/spellcheck/browser/android/component_jni_registrar.h" |
| 172 #include "components/spellcheck/spellcheck_build_features.h" |
172 #include "components/sync/android/sync_jni_registrar.h" | 173 #include "components/sync/android/sync_jni_registrar.h" |
173 #include "components/url_formatter/android/component_jni_registrar.h" | 174 #include "components/url_formatter/android/component_jni_registrar.h" |
174 #include "components/variations/android/component_jni_registrar.h" | 175 #include "components/variations/android/component_jni_registrar.h" |
175 #include "components/web_contents_delegate_android/component_jni_registrar.h" | 176 #include "components/web_contents_delegate_android/component_jni_registrar.h" |
176 #include "printing/features/features.h" | 177 #include "printing/features/features.h" |
177 | 178 |
178 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) | 179 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) |
179 #include "printing/printing_context_android.h" | 180 #include "printing/printing_context_android.h" |
180 #endif | 181 #endif |
181 | 182 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 predictors::RegisterResourcePrefetchPredictor}, | 363 predictors::RegisterResourcePrefetchPredictor}, |
363 {"RevenueStats", chrome::android::RegisterRevenueStats}, | 364 {"RevenueStats", chrome::android::RegisterRevenueStats}, |
364 {"SafeBrowsingApiBridge", safe_browsing::RegisterSafeBrowsingApiBridge}, | 365 {"SafeBrowsingApiBridge", safe_browsing::RegisterSafeBrowsingApiBridge}, |
365 {"SceneLayer", RegisterSceneLayer}, | 366 {"SceneLayer", RegisterSceneLayer}, |
366 {"ScreenshotTask", chrome::android::RegisterScreenshotTask}, | 367 {"ScreenshotTask", chrome::android::RegisterScreenshotTask}, |
367 {"ServiceTabLauncher", ServiceTabLauncher::Register}, | 368 {"ServiceTabLauncher", ServiceTabLauncher::Register}, |
368 {"SessionTabHelper", RegisterSessionTabHelper}, | 369 {"SessionTabHelper", RegisterSessionTabHelper}, |
369 {"SigninInvestigator", SigninInvestigatorAndroid::Register}, | 370 {"SigninInvestigator", SigninInvestigatorAndroid::Register}, |
370 {"SigninManager", SigninManagerAndroid::Register}, | 371 {"SigninManager", SigninManagerAndroid::Register}, |
371 {"SingleTabModel", RegisterSingleTabModel}, | 372 {"SingleTabModel", RegisterSingleTabModel}, |
372 #if defined(ENABLE_SPELLCHECK) | 373 #if BUILDFLAG(ENABLE_SPELLCHECK) |
373 {"SpellCheckerSessionBridge", spellcheck::android::RegisterSpellcheckJni}, | 374 {"SpellCheckerSessionBridge", spellcheck::android::RegisterSpellcheckJni}, |
374 #endif | 375 #endif |
375 {"SqliteCursor", SQLiteCursor::RegisterSqliteCursor}, | 376 {"SqliteCursor", SQLiteCursor::RegisterSqliteCursor}, |
376 {"SSLClientCertificateRequest", | 377 {"SSLClientCertificateRequest", |
377 chrome::android::RegisterSSLClientCertificateRequestAndroid}, | 378 chrome::android::RegisterSSLClientCertificateRequestAndroid}, |
378 {"StartupMetricUtils", chrome::android::RegisterStartupMetricUtils}, | 379 {"StartupMetricUtils", chrome::android::RegisterStartupMetricUtils}, |
379 {"StaticTabSceneLayer", RegisterStaticTabSceneLayer}, | 380 {"StaticTabSceneLayer", RegisterStaticTabSceneLayer}, |
380 {"SupervisedUserContentProvider", SupervisedUserContentProvider::Register}, | 381 {"SupervisedUserContentProvider", SupervisedUserContentProvider::Register}, |
381 {"Sync", syncer::RegisterSyncJni}, | 382 {"Sync", syncer::RegisterSyncJni}, |
382 {"SyncSessionsMetrics", SyncSessionsMetricsAndroid::Register}, | 383 {"SyncSessionsMetrics", SyncSessionsMetricsAndroid::Register}, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 #endif | 422 #endif |
422 }; | 423 }; |
423 | 424 |
424 bool RegisterBrowserJNI(JNIEnv* env) { | 425 bool RegisterBrowserJNI(JNIEnv* env) { |
425 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 426 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
426 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 427 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
427 arraysize(kChromeRegisteredMethods)); | 428 arraysize(kChromeRegisteredMethods)); |
428 } | 429 } |
429 | 430 |
430 } // namespace android | 431 } // namespace android |
OLD | NEW |