Commit 17120e0e authored by Jay Civelli's avatar Jay Civelli Committed by Commit Bot

Removing net/proxy/proxy_service_v8 which is unused.

Removing net/proxy/proxy_service_v8 which is unused.

Bug: None
Change-Id: I540e79f91ad8ba3315b2fee483ec57042a39a08e
Reviewed-on: https://chromium-review.googlesource.com/687987Reviewed-by: default avatarEric Roman <eroman@chromium.org>
Commit-Queue: Jay Civelli <jcivelli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504821}
parent 1c8d6057
...@@ -2687,8 +2687,6 @@ if (use_v8_in_net) { ...@@ -2687,8 +2687,6 @@ if (use_v8_in_net) {
"proxy/proxy_resolver_v8_tracing.h", "proxy/proxy_resolver_v8_tracing.h",
"proxy/proxy_resolver_v8_tracing_wrapper.cc", "proxy/proxy_resolver_v8_tracing_wrapper.cc",
"proxy/proxy_resolver_v8_tracing_wrapper.h", "proxy/proxy_resolver_v8_tracing_wrapper.h",
"proxy/proxy_service_v8.cc",
"proxy/proxy_service_v8.h",
] ]
defines = [ "NET_IMPLEMENTATION" ] defines = [ "NET_IMPLEMENTATION" ]
......
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/proxy/proxy_service_v8.h"
#include <memory>
#include <utility>
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/threading/thread_checker.h"
#include "base/threading/thread_task_runner_handle.h"
#include "net/proxy/network_delegate_error_observer.h"
#include "net/proxy/proxy_resolver.h"
#include "net/proxy/proxy_resolver_factory.h"
#include "net/proxy/proxy_resolver_v8_tracing_wrapper.h"
#include "net/proxy/proxy_service.h"
namespace net {
// static
std::unique_ptr<ProxyService> CreateProxyServiceUsingV8ProxyResolver(
std::unique_ptr<ProxyConfigService> proxy_config_service,
ProxyScriptFetcher* proxy_script_fetcher,
std::unique_ptr<DhcpProxyScriptFetcher> dhcp_proxy_script_fetcher,
HostResolver* host_resolver,
NetLog* net_log,
NetworkDelegate* network_delegate) {
DCHECK(proxy_config_service);
DCHECK(proxy_script_fetcher);
DCHECK(dhcp_proxy_script_fetcher);
DCHECK(host_resolver);
std::unique_ptr<ProxyService> proxy_service(new ProxyService(
std::move(proxy_config_service),
std::make_unique<ProxyResolverFactoryV8TracingWrapper>(
host_resolver, net_log,
base::Bind(&NetworkDelegateErrorObserver::Create, network_delegate,
base::ThreadTaskRunnerHandle::Get())),
net_log));
// Configure fetchers to use for PAC script downloads and auto-detect.
proxy_service->SetProxyScriptFetchers(proxy_script_fetcher,
std::move(dhcp_proxy_script_fetcher));
return proxy_service;
}
} // namespace net
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_PROXY_PROXY_SERVICE_V8_H_
#define NET_PROXY_PROXY_SERVICE_V8_H_
#include <memory>
#include "net/base/net_export.h"
#include "net/proxy/dhcp_proxy_script_fetcher.h"
namespace net {
class HostResolver;
class NetLog;
class NetworkDelegate;
class ProxyConfigService;
class ProxyScriptFetcher;
class ProxyService;
// Creates a proxy service that polls |proxy_config_service| to notice when
// the proxy settings change.
//
// |proxy_script_fetcher| specifies the dependency to use for downloading
// any PAC scripts. The resulting ProxyService will take ownership of it.
//
// |dhcp_proxy_script_fetcher| specifies the dependency to use for attempting
// to retrieve the most appropriate PAC script configured in DHCP.
//
// |host_resolver| points to the host resolving dependency the PAC script
// should use for any DNS queries. It must remain valid throughout the
// lifetime of the ProxyService.
//
// ##########################################################################
// # See the warnings in net/proxy/proxy_resolver_v8.h describing the
// # multi-threading model. In order for this to be safe to use, *ALL* the
// # other V8's running in the process must use v8::Locker.
// ##########################################################################
NET_EXPORT std::unique_ptr<ProxyService> CreateProxyServiceUsingV8ProxyResolver(
std::unique_ptr<ProxyConfigService> proxy_config_service,
ProxyScriptFetcher* proxy_script_fetcher,
std::unique_ptr<DhcpProxyScriptFetcher> dhcp_proxy_script_fetcher,
HostResolver* host_resolver,
NetLog* net_log,
NetworkDelegate* network_delegate);
} // namespace net
#endif // NET_PROXY_PROXY_SERVICE_V8_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment