#include "content/browser/background_fetch/storage/cleanup_task.h"
#include <memory>
#include "base/containers/flat_set.h"
#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/background_fetch/storage/delete_registration_task.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "url/origin.h"
namespace content {
namespace background_fetch {
namespace {
void EmptyErrorHandler(blink::mojom::BackgroundFetchError) { … }
}
CleanupTask::CleanupTask(DatabaseTaskHost* host) : … { … }
CleanupTask::~CleanupTask() = default;
void CleanupTask::Start() { … }
void CleanupTask::DidGetRegistrations(
const std::vector<std::pair<int64_t, std::string>>& registration_data,
blink::ServiceWorkerStatusCode status) { … }
void CleanupTask::DidGetActiveUniqueIds(
const std::vector<std::pair<int64_t, std::string>>& registration_data,
const std::vector<std::pair<int64_t, std::string>>& active_unique_id_data,
blink::ServiceWorkerStatusCode status) { … }
void CleanupTask::FinishWithError(blink::mojom::BackgroundFetchError error) { … }
}
}