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

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

Issue 2351113005: [Reland] Refactor WebappRegistry into a singleton instance. (Closed)
Patch Set: Fix WebappModeTest Created 4 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/macros.h" 9 #include "base/macros.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #include "chrome/browser/android/tab_state.h" 94 #include "chrome/browser/android/tab_state.h"
95 #include "chrome/browser/android/tab_web_contents_delegate_android.h" 95 #include "chrome/browser/android/tab_web_contents_delegate_android.h"
96 #include "chrome/browser/android/url_utilities.h" 96 #include "chrome/browser/android/url_utilities.h"
97 #include "chrome/browser/android/voice_search_tab_helper.h" 97 #include "chrome/browser/android/voice_search_tab_helper.h"
98 #include "chrome/browser/android/warmup_manager.h" 98 #include "chrome/browser/android/warmup_manager.h"
99 #include "chrome/browser/android/web_contents_factory.h" 99 #include "chrome/browser/android/web_contents_factory.h"
100 #include "chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.h" 100 #include "chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.h"
101 #include "chrome/browser/android/webapk/webapk_installer.h" 101 #include "chrome/browser/android/webapk/webapk_installer.h"
102 #include "chrome/browser/android/webapk/webapk_update_manager.h" 102 #include "chrome/browser/android/webapk/webapk_update_manager.h"
103 #include "chrome/browser/android/webapps/add_to_homescreen_manager.h" 103 #include "chrome/browser/android/webapps/add_to_homescreen_manager.h"
104 #include "chrome/browser/android/webapps/webapp_registry.h"
105 #include "chrome/browser/autofill/android/personal_data_manager_android.h" 104 #include "chrome/browser/autofill/android/personal_data_manager_android.h"
106 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" 105 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h"
107 #include "chrome/browser/dom_distiller/tab_utils_android.h" 106 #include "chrome/browser/dom_distiller/tab_utils_android.h"
108 #include "chrome/browser/history/android/sqlite_cursor.h" 107 #include "chrome/browser/history/android/sqlite_cursor.h"
109 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" 108 #include "chrome/browser/invalidation/invalidation_service_factory_android.h"
110 #include "chrome/browser/media/android/cdm/media_drm_credential_manager.h" 109 #include "chrome/browser/media/android/cdm/media_drm_credential_manager.h"
111 #include "chrome/browser/media/android/remote/record_cast_action.h" 110 #include "chrome/browser/media/android/remote/record_cast_action.h"
112 #include "chrome/browser/media/android/remote/remote_media_player_bridge.h" 111 #include "chrome/browser/media/android/remote/remote_media_player_bridge.h"
113 #include "chrome/browser/media/android/router/media_router_android.h" 112 #include "chrome/browser/media/android/router/media_router_android.h"
114 #include "chrome/browser/media/android/router/media_router_dialog_controller_and roid.h" 113 #include "chrome/browser/media/android/router/media_router_dialog_controller_and roid.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, 370 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register},
372 {"Variations", variations::android::RegisterVariations}, 371 {"Variations", variations::android::RegisterVariations},
373 {"VariationsSession", chrome::android::RegisterVariationsSession}, 372 {"VariationsSession", chrome::android::RegisterVariationsSession},
374 #if defined(ENABLE_VR_SHELL) 373 #if defined(ENABLE_VR_SHELL)
375 {"VrShell", vr_shell::RegisterVrShell}, 374 {"VrShell", vr_shell::RegisterVrShell},
376 {"VrShellDelegate", vr_shell::RegisterVrShellDelegate}, 375 {"VrShellDelegate", vr_shell::RegisterVrShellDelegate},
377 #endif 376 #endif
378 {"WarmupManager", RegisterWarmupManager}, 377 {"WarmupManager", RegisterWarmupManager},
379 {"WebApkInstaller", WebApkInstaller::Register}, 378 {"WebApkInstaller", WebApkInstaller::Register},
380 {"WebApkUpdateManager", WebApkUpdateManager::Register}, 379 {"WebApkUpdateManager", WebApkUpdateManager::Register},
381 {"WebappRegistry", WebappRegistry::RegisterWebappRegistry},
382 {"WebContentsFactory", RegisterWebContentsFactory}, 380 {"WebContentsFactory", RegisterWebContentsFactory},
383 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, 381 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge},
384 {"WebsiteSettingsPopupAndroid", 382 {"WebsiteSettingsPopupAndroid",
385 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, 383 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid},
386 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) 384 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW)
387 {"PrintingContext", 385 {"PrintingContext",
388 printing::PrintingContextAndroid::RegisterPrintingContext}, 386 printing::PrintingContextAndroid::RegisterPrintingContext},
389 #endif 387 #endif
390 }; 388 };
391 389
392 bool RegisterBrowserJNI(JNIEnv* env) { 390 bool RegisterBrowserJNI(JNIEnv* env) {
393 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 391 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
394 return RegisterNativeMethods(env, kChromeRegisteredMethods, 392 return RegisterNativeMethods(env, kChromeRegisteredMethods,
395 arraysize(kChromeRegisteredMethods)); 393 arraysize(kChromeRegisteredMethods));
396 } 394 }
397 395
398 } // namespace android 396 } // namespace android
399 } // namespace chrome 397 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698