#include "services/proxy_resolver/proxy_resolver_impl.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "net/base/net_errors.h"
#include "net/base/network_anonymization_key.h"
#include "net/base/proxy_string_util.h"
#include "net/proxy_resolution/pac_file_data.h"
#include "net/proxy_resolution/proxy_info.h"
#include "services/proxy_resolver/mojo_proxy_resolver_v8_tracing_bindings.h"
#include "services/proxy_resolver/proxy_resolver_v8_tracing.h"
namespace proxy_resolver {
class ProxyResolverImpl::Job { … };
ProxyResolverImpl::ProxyResolverImpl(
std::unique_ptr<ProxyResolverV8Tracing> resolver)
: … { … }
ProxyResolverImpl::~ProxyResolverImpl() = default;
void ProxyResolverImpl::GetProxyForUrl(
const GURL& url,
const net::NetworkAnonymizationKey& network_anonymization_key,
mojo::PendingRemote<mojom::ProxyResolverRequestClient> client) { … }
void ProxyResolverImpl::DeleteJob(Job* job) { … }
ProxyResolverImpl::Job::Job(
mojo::PendingRemote<mojom::ProxyResolverRequestClient> client,
ProxyResolverImpl* resolver,
const GURL& url)
: … { … }
ProxyResolverImpl::Job::~Job() = default;
void ProxyResolverImpl::Job::Start(
const net::NetworkAnonymizationKey& network_anonymization_key) { … }
void ProxyResolverImpl::Job::GetProxyDone(int error) { … }
void ProxyResolverImpl::Job::OnDisconnect() { … }
}