Skip to content

Truly independent web browser

667 B
Raw Blame
/*
 * Copyright (c) 2026, Tim Flynn <[email protected]>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <LibWeb/Fetch/Infrastructure/HTTP/Requests.h>
#include <LibWeb/Fetch/Infrastructure/HTTP/ResponseView.h>
#include <LibWeb/ServiceWorker/NameToCacheMap.h>

namespace Web::ServiceWorker {

GC_DEFINE_ALLOCATOR(RequestResponse);

RequestResponse::RequestResponse(NonnullRefPtr<Fetch::Infrastructure::Request> request, GC::Ref<Fetch::Infrastructure::ResponseView> response)
    : request(move(request))
    , response(response)
{
}

void RequestResponse::visit_edges(Visitor& visitor)
{
    Base::visit_edges(visitor);
    visitor.visit(response);
}

}