#include "content/browser/background_fetch/storage/mark_registration_for_deletion_task.h"
#include <utility>
#include "base/functional/bind.h"
#include "content/browser/background_fetch/background_fetch.pb.h"
#include "content/browser/background_fetch/background_fetch_data_manager.h"
#include "content/browser/background_fetch/storage/database_helpers.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
namespace content {
namespace background_fetch {
MarkRegistrationForDeletionTask::MarkRegistrationForDeletionTask(
DatabaseTaskHost* host,
const BackgroundFetchRegistrationId& registration_id,
bool check_for_failure,
MarkRegistrationForDeletionCallback callback)
: … { … }
MarkRegistrationForDeletionTask::~MarkRegistrationForDeletionTask() = default;
void MarkRegistrationForDeletionTask::Start() { … }
void MarkRegistrationForDeletionTask::DidGetActiveUniqueId(
const std::vector<std::string>& data,
blink::ServiceWorkerStatusCode status) { … }
void MarkRegistrationForDeletionTask::DidDeactivate(
blink::ServiceWorkerStatusCode status) { … }
void MarkRegistrationForDeletionTask::DidGetCompletedRequests(
const std::vector<std::string>& data,
blink::ServiceWorkerStatusCode status) { … }
void MarkRegistrationForDeletionTask::FinishWithError(
blink::mojom::BackgroundFetchError error) { … }
}
}