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

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

Issue 2184913005: Add calls to the server to request WebAPK updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 #include "chrome/browser/android/signin/signin_promo_util_android.h" 95 #include "chrome/browser/android/signin/signin_promo_util_android.h"
96 #include "chrome/browser/android/tab_android.h" 96 #include "chrome/browser/android/tab_android.h"
97 #include "chrome/browser/android/tab_state.h" 97 #include "chrome/browser/android/tab_state.h"
98 #include "chrome/browser/android/tab_web_contents_delegate_android.h" 98 #include "chrome/browser/android/tab_web_contents_delegate_android.h"
99 #include "chrome/browser/android/url_utilities.h" 99 #include "chrome/browser/android/url_utilities.h"
100 #include "chrome/browser/android/voice_search_tab_helper.h" 100 #include "chrome/browser/android/voice_search_tab_helper.h"
101 #include "chrome/browser/android/warmup_manager.h" 101 #include "chrome/browser/android/warmup_manager.h"
102 #include "chrome/browser/android/web_contents_factory.h" 102 #include "chrome/browser/android/web_contents_factory.h"
103 #include "chrome/browser/android/webapk/manifest_upgrade_detector.h" 103 #include "chrome/browser/android/webapk/manifest_upgrade_detector.h"
104 #include "chrome/browser/android/webapk/webapk_installer.h" 104 #include "chrome/browser/android/webapk/webapk_installer.h"
105 #include "chrome/browser/android/webapk/webapk_update_manager.h"
105 #include "chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h" 106 #include "chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h"
106 #include "chrome/browser/android/webapps/webapp_registry.h" 107 #include "chrome/browser/android/webapps/webapp_registry.h"
107 #include "chrome/browser/autofill/android/personal_data_manager_android.h" 108 #include "chrome/browser/autofill/android/personal_data_manager_android.h"
108 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" 109 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h"
109 #include "chrome/browser/dom_distiller/tab_utils_android.h" 110 #include "chrome/browser/dom_distiller/tab_utils_android.h"
110 #include "chrome/browser/history/android/sqlite_cursor.h" 111 #include "chrome/browser/history/android/sqlite_cursor.h"
111 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" 112 #include "chrome/browser/invalidation/invalidation_service_factory_android.h"
112 #include "chrome/browser/lifetime/application_lifetime_android.h" 113 #include "chrome/browser/lifetime/application_lifetime_android.h"
113 #include "chrome/browser/media/android/cdm/media_drm_credential_manager.h" 114 #include "chrome/browser/media/android/cdm/media_drm_credential_manager.h"
114 #include "chrome/browser/media/android/remote/record_cast_action.h" 115 #include "chrome/browser/media/android/remote/record_cast_action.h"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 {"TtsPlatformImpl", TtsPlatformImplAndroid::Register}, 399 {"TtsPlatformImpl", TtsPlatformImplAndroid::Register},
399 {"UmaSessionStats", RegisterUmaSessionStats}, 400 {"UmaSessionStats", RegisterUmaSessionStats},
400 {"UpdatePasswordInfoBar", UpdatePasswordInfoBar::Register}, 401 {"UpdatePasswordInfoBar", UpdatePasswordInfoBar::Register},
401 {"UrlUtilities", RegisterUrlUtilities}, 402 {"UrlUtilities", RegisterUrlUtilities},
402 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register}, 403 {"UsbChooserDialogAndroid", UsbChooserDialogAndroid::Register},
403 {"Variations", variations::android::RegisterVariations}, 404 {"Variations", variations::android::RegisterVariations},
404 {"VariationsSeedBridge", variations::android::RegisterVariationsSeedBridge}, 405 {"VariationsSeedBridge", variations::android::RegisterVariationsSeedBridge},
405 {"VariationsSession", chrome::android::RegisterVariationsSession}, 406 {"VariationsSession", chrome::android::RegisterVariationsSession},
406 {"WarmupManager", RegisterWarmupManager}, 407 {"WarmupManager", RegisterWarmupManager},
407 {"WebApkInstaller", WebApkInstaller::Register}, 408 {"WebApkInstaller", WebApkInstaller::Register},
409 {"WebApkUpdateManager", WebApkUpdateManager::Register},
408 {"WebappRegistry", WebappRegistry::RegisterWebappRegistry}, 410 {"WebappRegistry", WebappRegistry::RegisterWebappRegistry},
409 {"WebContentsFactory", RegisterWebContentsFactory}, 411 {"WebContentsFactory", RegisterWebContentsFactory},
410 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, 412 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge},
411 {"WebsiteSettingsPopupAndroid", 413 {"WebsiteSettingsPopupAndroid",
412 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, 414 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid},
413 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) 415 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW)
414 {"PrintingContext", 416 {"PrintingContext",
415 printing::PrintingContextAndroid::RegisterPrintingContext}, 417 printing::PrintingContextAndroid::RegisterPrintingContext},
416 #endif 418 #endif
417 }; 419 };
418 420
419 bool RegisterBrowserJNI(JNIEnv* env) { 421 bool RegisterBrowserJNI(JNIEnv* env) {
420 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 422 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
421 return RegisterNativeMethods(env, kChromeRegisteredMethods, 423 return RegisterNativeMethods(env, kChromeRegisteredMethods,
422 arraysize(kChromeRegisteredMethods)); 424 arraysize(kChromeRegisteredMethods));
423 } 425 }
424 426
425 } // namespace android 427 } // namespace android
426 } // namespace chrome 428 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698