#include "content/browser/background_fetch/storage/start_next_pending_request_task.h"
#include "base/functional/bind.h"
#include "base/uuid.h"
#include "content/browser/background_fetch/storage/database_helpers.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/common/fetch/fetch_api_request_proto.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
namespace content {
namespace background_fetch {
StartNextPendingRequestTask::StartNextPendingRequestTask(
DatabaseTaskHost* host,
const BackgroundFetchRegistrationId& registration_id,
NextRequestCallback callback)
: … { … }
StartNextPendingRequestTask::~StartNextPendingRequestTask() = default;
void StartNextPendingRequestTask::Start() { … }
void StartNextPendingRequestTask::GetPendingRequests() { … }
void StartNextPendingRequestTask::DidGetPendingRequests(
const std::vector<std::string>& data,
blink::ServiceWorkerStatusCode status) { … }
void StartNextPendingRequestTask::DidStoreActiveRequest(
blink::ServiceWorkerStatusCode status) { … }
void StartNextPendingRequestTask::DidDeletePendingRequest(
blink::ServiceWorkerStatusCode status) { … }
void StartNextPendingRequestTask::FinishWithError(
blink::mojom::BackgroundFetchError error) { … }
}
}