#include "content/browser/background_fetch/storage/get_metadata_task.h"
#include <utility>
#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 "third_party/blink/public/common/storage_key/storage_key.h"
#include "url/gurl.h"
namespace content {
namespace background_fetch {
GetMetadataTask::GetMetadataTask(DatabaseTaskHost* host,
int64_t service_worker_registration_id,
const blink::StorageKey& storage_key,
const std::string& developer_id,
GetMetadataCallback callback)
: … { … }
GetMetadataTask::~GetMetadataTask() = default;
void GetMetadataTask::Start() { … }
void GetMetadataTask::DidGetUniqueId(const std::vector<std::string>& data,
blink::ServiceWorkerStatusCode status) { … }
void GetMetadataTask::DidGetMetadata(const std::vector<std::string>& data,
blink::ServiceWorkerStatusCode status) { … }
void GetMetadataTask::ProcessMetadata(const std::string& metadata) { … }
void GetMetadataTask::FinishWithError(
blink::mojom::BackgroundFetchError error) { … }
}
}