#include "chrome/browser/net/chrome_mojo_proxy_resolver_factory.h"
#include <utility>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/no_destructor.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "content/public/browser/child_process_host.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "services/proxy_resolver/public/mojom/proxy_resolver.mojom.h"
#if BUILDFLAG(IS_ANDROID)
#include "services/proxy_resolver/proxy_resolver_factory_impl.h"
#else
#include "content/public/browser/service_process_host.h"
#include "services/strings/grit/services_strings.h"
#endif
namespace {
proxy_resolver::mojom::ProxyResolverFactory* GetProxyResolverFactory() { … }
}
ChromeMojoProxyResolverFactory::ChromeMojoProxyResolverFactory() = default;
ChromeMojoProxyResolverFactory::~ChromeMojoProxyResolverFactory() { … }
mojo::PendingRemote<proxy_resolver::mojom::ProxyResolverFactory>
ChromeMojoProxyResolverFactory::CreateWithSelfOwnedReceiver() { … }
void ChromeMojoProxyResolverFactory::CreateResolver(
const std::string& pac_script,
mojo::PendingReceiver<proxy_resolver::mojom::ProxyResolver> receiver,
mojo::PendingRemote<
proxy_resolver::mojom::ProxyResolverFactoryRequestClient> client) { … }