#include "components/update_client/task_check_for_update.h"
#include <string>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "base/sequence_checker.h"
#include "base/task/bind_post_task.h"
#include "base/task/sequenced_task_runner.h"
#include "components/update_client/update_client.h"
#include "components/update_client/update_engine.h"
namespace update_client {
TaskCheckForUpdate::TaskCheckForUpdate(
scoped_refptr<UpdateEngine> update_engine,
const std::string& id,
UpdateClient::CrxDataCallback crx_data_callback,
UpdateClient::CrxStateChangeCallback crx_state_change_callback,
bool is_foreground,
base::OnceCallback<void(scoped_refptr<Task> task, Error error)> callback)
: … { … }
TaskCheckForUpdate::~TaskCheckForUpdate() = default;
void TaskCheckForUpdate::Run() { … }
void TaskCheckForUpdate::Cancel() { … }
std::vector<std::string> TaskCheckForUpdate::GetIds() const { … }
}