#include "content/browser/background_fetch/storage/get_developer_ids_task.h"
#include <vector>
#include "base/functional/bind.h"
#include "content/browser/background_fetch/storage/database_helpers.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/browser/service_worker/service_worker_registration.h"
namespace content {
namespace background_fetch {
GetDeveloperIdsTask::GetDeveloperIdsTask(
DatabaseTaskHost* host,
int64_t service_worker_registration_id,
const blink::StorageKey& storage_key,
blink::mojom::BackgroundFetchService::GetDeveloperIdsCallback callback)
: … { … }
GetDeveloperIdsTask::~GetDeveloperIdsTask() = default;
void GetDeveloperIdsTask::Start() { … }
void GetDeveloperIdsTask::DidGetServiceWorkerRegistration(
blink::ServiceWorkerStatusCode status,
scoped_refptr<ServiceWorkerRegistration> registration) { … }
void GetDeveloperIdsTask::DidGetUniqueIds(
blink::ServiceWorkerStatusCode status,
const base::flat_map<std::string, std::string>& data_map) { … }
void GetDeveloperIdsTask::FinishWithError(
blink::mojom::BackgroundFetchError error) { … }
}
}