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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 #include "components/gcm_driver/instance_id/android/component_jni_registrar.h" | 164 #include "components/gcm_driver/instance_id/android/component_jni_registrar.h" |
165 #include "components/invalidation/impl/android/component_jni_registrar.h" | 165 #include "components/invalidation/impl/android/component_jni_registrar.h" |
166 #include "components/policy/core/browser/android/component_jni_registrar.h" | 166 #include "components/policy/core/browser/android/component_jni_registrar.h" |
167 #include "components/safe_json/android/component_jni_registrar.h" | 167 #include "components/safe_json/android/component_jni_registrar.h" |
168 #include "components/signin/core/browser/android/component_jni_registrar.h" | 168 #include "components/signin/core/browser/android/component_jni_registrar.h" |
169 #include "components/spellcheck/browser/android/component_jni_registrar.h" | 169 #include "components/spellcheck/browser/android/component_jni_registrar.h" |
170 #include "components/sync/android/sync_jni_registrar.h" | 170 #include "components/sync/android/sync_jni_registrar.h" |
171 #include "components/url_formatter/android/component_jni_registrar.h" | 171 #include "components/url_formatter/android/component_jni_registrar.h" |
172 #include "components/variations/android/component_jni_registrar.h" | 172 #include "components/variations/android/component_jni_registrar.h" |
173 #include "components/web_contents_delegate_android/component_jni_registrar.h" | 173 #include "components/web_contents_delegate_android/component_jni_registrar.h" |
| 174 #include "printing/features/features.h" |
174 | 175 |
175 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) | 176 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) |
176 #include "printing/printing_context_android.h" | 177 #include "printing/printing_context_android.h" |
177 #endif | 178 #endif |
178 | 179 |
179 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) | 180 #if defined(ENABLE_VR_SHELL) || defined(ENABLE_WEBVR) |
180 #include "chrome/browser/android/vr_shell/vr_shell.h" | 181 #include "chrome/browser/android/vr_shell/vr_shell.h" |
181 #include "chrome/browser/android/vr_shell/vr_shell_delegate.h" | 182 #include "chrome/browser/android/vr_shell/vr_shell_delegate.h" |
182 #endif | 183 #endif |
183 | 184 |
184 #if !defined(OFFICIAL_BUILD) | 185 #if !defined(OFFICIAL_BUILD) |
185 #include "chrome/browser/android/offline_pages/evaluation/offline_page_evaluatio
n_bridge.h" | 186 #include "chrome/browser/android/offline_pages/evaluation/offline_page_evaluatio
n_bridge.h" |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 {"VrShell", vr_shell::RegisterVrShell}, | 395 {"VrShell", vr_shell::RegisterVrShell}, |
395 {"VrShellDelegate", vr_shell::RegisterVrShellDelegate}, | 396 {"VrShellDelegate", vr_shell::RegisterVrShellDelegate}, |
396 #endif | 397 #endif |
397 {"WarmupManager", RegisterWarmupManager}, | 398 {"WarmupManager", RegisterWarmupManager}, |
398 {"WebApkInstaller", WebApkInstaller::Register}, | 399 {"WebApkInstaller", WebApkInstaller::Register}, |
399 {"WebApkUpdateManager", WebApkUpdateManager::Register}, | 400 {"WebApkUpdateManager", WebApkUpdateManager::Register}, |
400 {"WebContentsFactory", RegisterWebContentsFactory}, | 401 {"WebContentsFactory", RegisterWebContentsFactory}, |
401 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, | 402 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, |
402 {"WebsiteSettingsPopupAndroid", | 403 {"WebsiteSettingsPopupAndroid", |
403 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, | 404 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, |
404 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) | 405 #if BUILDFLAG(ENABLE_PRINTING) && !BUILDFLAG(ENABLE_PRINT_PREVIEW) |
405 {"PrintingContext", | 406 {"PrintingContext", |
406 printing::PrintingContextAndroid::RegisterPrintingContext}, | 407 printing::PrintingContextAndroid::RegisterPrintingContext}, |
407 #endif | 408 #endif |
408 }; | 409 }; |
409 | 410 |
410 bool RegisterBrowserJNI(JNIEnv* env) { | 411 bool RegisterBrowserJNI(JNIEnv* env) { |
411 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); | 412 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); |
412 return RegisterNativeMethods(env, kChromeRegisteredMethods, | 413 return RegisterNativeMethods(env, kChromeRegisteredMethods, |
413 arraysize(kChromeRegisteredMethods)); | 414 arraysize(kChromeRegisteredMethods)); |
414 } | 415 } |
415 | 416 |
416 } // namespace android | 417 } // namespace android |
OLD | NEW |