#include "services/proxy_resolver/proxy_resolver_factory_impl.h"
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "net/base/net_errors.h"
#include "net/proxy_resolution/proxy_resolver_factory.h"
#include "services/proxy_resolver/mojo_proxy_resolver_v8_tracing_bindings.h"
#include "services/proxy_resolver/proxy_resolver_impl.h"
#include "services/proxy_resolver/proxy_resolver_v8_tracing.h"
namespace proxy_resolver {
class ProxyResolverFactoryImpl::Job { … };
ProxyResolverFactoryImpl::Job::Job(
ProxyResolverFactoryImpl* factory,
const scoped_refptr<net::PacFileData>& pac_script,
ProxyResolverV8TracingFactory* proxy_resolver_factory,
mojo::PendingReceiver<mojom::ProxyResolver> receiver,
mojo::PendingRemote<mojom::ProxyResolverFactoryRequestClient> client)
: … { … }
ProxyResolverFactoryImpl::Job::~Job() = default;
void ProxyResolverFactoryImpl::Job::OnDisconnect() { … }
void ProxyResolverFactoryImpl::Job::OnProxyResolverCreated(int error) { … }
ProxyResolverFactoryImpl::ProxyResolverFactoryImpl(
mojo::PendingReceiver<mojom::ProxyResolverFactory> receiver)
: … { … }
void ProxyResolverFactoryImpl::AddResolver(
std::unique_ptr<mojom::ProxyResolver> resolver,
mojo::PendingReceiver<mojom::ProxyResolver> receiver) { … }
ProxyResolverFactoryImpl::ProxyResolverFactoryImpl(
mojo::PendingReceiver<mojom::ProxyResolverFactory> receiver,
std::unique_ptr<ProxyResolverV8TracingFactory> proxy_resolver_factory)
: … { … }
ProxyResolverFactoryImpl::~ProxyResolverFactoryImpl() = default;
void ProxyResolverFactoryImpl::CreateResolver(
const std::string& pac_script,
mojo::PendingReceiver<mojom::ProxyResolver> receiver,
mojo::PendingRemote<mojom::ProxyResolverFactoryRequestClient> client) { … }
void ProxyResolverFactoryImpl::RemoveJob(Job* job) { … }
}