#include "content/browser/background_fetch/storage/get_request_blob_task.h"
#include "base/functional/bind.h"
#include "base/trace_event/trace_event.h"
#include "content/browser/background_fetch/background_fetch_request_match_params.h"
#include "content/browser/background_fetch/storage/database_helpers.h"
#include "content/common/background_fetch/background_fetch_types.h"
#include "third_party/blink/public/common/cache_storage/cache_storage_utils.h"
namespace content {
namespace background_fetch {
GetRequestBlobTask::GetRequestBlobTask(
DatabaseTaskHost* host,
const BackgroundFetchRegistrationId& registration_id,
const scoped_refptr<BackgroundFetchRequestInfo>& request_info,
GetRequestBlobCallback callback)
: … { … }
GetRequestBlobTask::~GetRequestBlobTask() = default;
void GetRequestBlobTask::Start() { … }
void GetRequestBlobTask::DidOpenCache(int64_t trace_id,
blink::mojom::CacheStorageError error) { … }
void GetRequestBlobTask::DidMatchRequest(
int64_t trace_id,
blink::mojom::CacheKeysResultPtr result) { … }
void GetRequestBlobTask::FinishWithError(
blink::mojom::BackgroundFetchError error) { … }
}
}