#include "chrome/browser/web_applications/commands/update_file_handler_command.h"
#include <memory>
#include <utility>
#include "base/barrier_callback.h"
#include "base/functional/callback.h"
#include "base/memory/ptr_util.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/web_applications/locks/app_lock.h"
#include "chrome/browser/web_applications/os_integration/os_integration_manager.h"
#include "chrome/browser/web_applications/proto/web_app_install_state.pb.h"
#include "chrome/browser/web_applications/web_app_constants.h"
#include "chrome/browser/web_applications/web_app_registrar.h"
#include "chrome/browser/web_applications/web_app_sync_bridge.h"
#include "components/webapps/common/web_app_id.h"
namespace web_app {
std::unique_ptr<UpdateFileHandlerCommand>
UpdateFileHandlerCommand::CreateForPersistUserChoice(
const webapps::AppId& app_id,
bool allowed,
base::OnceClosure callback) { … }
UpdateFileHandlerCommand::UpdateFileHandlerCommand(const webapps::AppId& app_id,
bool user_choice_to_remember,
base::OnceClosure callback)
: … { … }
UpdateFileHandlerCommand::~UpdateFileHandlerCommand() = default;
void UpdateFileHandlerCommand::StartWithLock(std::unique_ptr<AppLock> lock) { … }
void UpdateFileHandlerCommand::OnFileHandlerUpdated(
bool file_handling_enabled) { … }
}