#include "services/network/public/cpp/single_request_url_loader_factory.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/ref_counted.h"
#include "base/task/sequenced_task_runner.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/mojom/url_loader.mojom.h"
namespace network {
class SingleRequestURLLoaderFactory::HandlerState
: public base::RefCountedThreadSafe<
SingleRequestURLLoaderFactory::HandlerState> { … };
class SingleRequestURLLoaderFactory::PendingFactory
: public PendingSharedURLLoaderFactory { … };
SingleRequestURLLoaderFactory::SingleRequestURLLoaderFactory(
RequestHandler handler)
: … { … }
void SingleRequestURLLoaderFactory::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 SingleRequestURLLoaderFactory::Clone(
mojo::PendingReceiver<mojom::URLLoaderFactory> receiver) { … }
std::unique_ptr<PendingSharedURLLoaderFactory>
SingleRequestURLLoaderFactory::Clone() { … }
SingleRequestURLLoaderFactory::SingleRequestURLLoaderFactory(
scoped_refptr<HandlerState> state)
: … { … }
SingleRequestURLLoaderFactory::~SingleRequestURLLoaderFactory() = default;
}