#include "content/browser/background_fetch/storage/match_requests_task.h"
#include <memory>
#include "base/barrier_closure.h"
#include "base/functional/bind.h"
#include "base/trace_event/trace_event.h"
#include "content/browser/background_fetch/background_fetch_data_manager.h"
#include "content/browser/background_fetch/storage/database_helpers.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "services/network/public/cpp/cors/cors.h"
#include "third_party/blink/public/common/cache_storage/cache_storage_utils.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom.h"
namespace content {
namespace background_fetch {
MatchRequestsTask::MatchRequestsTask(
DatabaseTaskHost* host,
const BackgroundFetchRegistrationId& registration_id,
std::unique_ptr<BackgroundFetchRequestMatchParams> match_params,
SettledFetchesCallback callback)
: … { … }
MatchRequestsTask::~MatchRequestsTask() = default;
void MatchRequestsTask::Start() { … }
void MatchRequestsTask::DidOpenCache(int64_t trace_id,
blink::mojom::CacheStorageError error) { … }
void MatchRequestsTask::DidGetAllMatchedEntries(
int64_t trace_id,
blink::mojom::GetAllMatchedEntriesResultPtr result) { … }
bool MatchRequestsTask::ShouldMatchRequest(
const blink::mojom::FetchAPIRequestPtr& request) { … }
void MatchRequestsTask::FinishWithError(
blink::mojom::BackgroundFetchError error) { … }
}
}