#include "services/network/prefetch_matching_url_loader_factory.h"
#include <memory>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "services/network/cors/cors_url_loader_factory.h"
#include "services/network/resource_scheduler/resource_scheduler_client.h"
namespace network {
PrefetchMatchingURLLoaderFactory::PrefetchMatchingURLLoaderFactory(
NetworkContext* context,
mojom::URLLoaderFactoryParamsPtr params,
scoped_refptr<ResourceSchedulerClient> resource_scheduler_client,
mojo::PendingReceiver<mojom::URLLoaderFactory> receiver,
const cors::OriginAccessList* origin_access_list,
PrefetchCache* cache)
: … { … }
PrefetchMatchingURLLoaderFactory::~PrefetchMatchingURLLoaderFactory() = default;
void PrefetchMatchingURLLoaderFactory::CreateLoaderAndStart(
mojo::PendingReceiver<mojom::URLLoader> loader,
int32_t request_id,
uint32_t options,
const ResourceRequest& request,
mojo::PendingRemote<mojom::URLLoaderClient> client,
const net::MutableNetworkTrafficAnnotationTag& traffic_annotation) { … }
void PrefetchMatchingURLLoaderFactory::Clone(
mojo::PendingReceiver<URLLoaderFactory> receiver) { … }
void PrefetchMatchingURLLoaderFactory::ClearBindings() { … }
net::handles::NetworkHandle
PrefetchMatchingURLLoaderFactory::GetBoundNetworkForTesting() const { … }
void PrefetchMatchingURLLoaderFactory::
CancelRequestsIfNonceMatchesAndUrlNotExempted(
const base::UnguessableToken& nonce,
const std::set<GURL>& exemptions) { … }
void PrefetchMatchingURLLoaderFactory::DestroyURLLoaderFactory(
cors::CorsURLLoaderFactory* factory) { … }
bool PrefetchMatchingURLLoaderFactory::HasAdditionalReferences() const { … }
cors::CorsURLLoaderFactory*
PrefetchMatchingURLLoaderFactory::GetCorsURLLoaderFactoryForTesting() { … }
void PrefetchMatchingURLLoaderFactory::OnDisconnect() { … }
}