// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_WEB_APPLICATIONS_JOBS_UNINSTALL_WEB_APP_UNINSTALL_AND_REPLACE_JOB_H_ #define CHROME_BROWSER_WEB_APPLICATIONS_JOBS_UNINSTALL_WEB_APP_UNINSTALL_AND_REPLACE_JOB_H_ #include <memory> #include <vector> #include "base/functional/callback.h" #include "base/memory/raw_ref.h" #include "base/memory/weak_ptr.h" #include "base/values.h" #include "components/webapps/common/web_app_id.h" class Profile; namespace web_app { class WithAppResources; struct ShortcutInfo; struct ShortcutLocations; // Uninstalls the web apps or extensions in |from_apps_or_extensions| and // migrates an |to_app|'s OS attributes (e.g pin position, app list // folder/position, shortcuts and other OS integrations) to the first |from_app| // found. // The app lock only needs to lock the app with the `to_app` id. The // `from_apps_or_extensions` are uninstalled through separately scheduled // commands. class WebAppUninstallAndReplaceJob { … }; } // namespace web_app #endif // CHROME_BROWSER_WEB_APPLICATIONS_JOBS_UNINSTALL_WEB_APP_UNINSTALL_AND_REPLACE_JOB_H_