#include "content/browser/background_fetch/storage/get_registration_task.h"
#include "base/functional/bind.h"
#include "content/browser/background_fetch/storage/database_helpers.h"
#include "content/browser/background_fetch/storage/get_metadata_task.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
namespace content {
namespace background_fetch {
GetRegistrationTask::GetRegistrationTask(DatabaseTaskHost* host,
int64_t service_worker_registration_id,
const blink::StorageKey& storage_key,
const std::string& developer_id,
GetRegistrationCallback callback)
: … { … }
GetRegistrationTask::~GetRegistrationTask() = default;
void GetRegistrationTask::Start() { … }
void GetRegistrationTask::DidGetMetadata(
blink::mojom::BackgroundFetchError error,
std::unique_ptr<proto::BackgroundFetchMetadata> metadata_proto) { … }
void GetRegistrationTask::FinishWithError(
blink::mojom::BackgroundFetchError error) { … }
}
}