| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_PROXY_PROXY_SERVICE_MOJO_H_ | 5 #ifndef NET_PROXY_PROXY_SERVICE_MOJO_H_ |
| 6 #define NET_PROXY_PROXY_SERVICE_MOJO_H_ | 6 #define NET_PROXY_PROXY_SERVICE_MOJO_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "net/proxy/dhcp_proxy_script_fetcher.h" | 10 #include "net/proxy/dhcp_proxy_script_fetcher.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // lifetime of the ProxyService. | 34 // lifetime of the ProxyService. |
| 35 std::unique_ptr<ProxyService> CreateProxyServiceUsingMojoFactory( | 35 std::unique_ptr<ProxyService> CreateProxyServiceUsingMojoFactory( |
| 36 MojoProxyResolverFactory* mojo_proxy_factory, | 36 MojoProxyResolverFactory* mojo_proxy_factory, |
| 37 std::unique_ptr<ProxyConfigService> proxy_config_service, | 37 std::unique_ptr<ProxyConfigService> proxy_config_service, |
| 38 ProxyScriptFetcher* proxy_script_fetcher, | 38 ProxyScriptFetcher* proxy_script_fetcher, |
| 39 std::unique_ptr<DhcpProxyScriptFetcher> dhcp_proxy_script_fetcher, | 39 std::unique_ptr<DhcpProxyScriptFetcher> dhcp_proxy_script_fetcher, |
| 40 HostResolver* host_resolver, | 40 HostResolver* host_resolver, |
| 41 NetLog* net_log, | 41 NetLog* net_log, |
| 42 NetworkDelegate* network_delegate); | 42 NetworkDelegate* network_delegate); |
| 43 | 43 |
| 44 // Creates a proxy service that connects to an in-process Mojo proxy resolver | |
| 45 // service. See above for information about other arguments. | |
| 46 // | |
| 47 // ########################################################################## | |
| 48 // # See the warnings in net/proxy/proxy_resolver_v8.h describing the | |
| 49 // # multi-threading model. In order for this to be safe to use, *ALL* the | |
| 50 // # other V8's running in the process must use v8::Locker. | |
| 51 // ########################################################################## | |
| 52 std::unique_ptr<ProxyService> CreateProxyServiceUsingMojoInProcess( | |
| 53 std::unique_ptr<ProxyConfigService> proxy_config_service, | |
| 54 ProxyScriptFetcher* proxy_script_fetcher, | |
| 55 std::unique_ptr<DhcpProxyScriptFetcher> dhcp_proxy_script_fetcher, | |
| 56 HostResolver* host_resolver, | |
| 57 NetLog* net_log, | |
| 58 NetworkDelegate* network_delegate); | |
| 59 | |
| 60 } // namespace net | 44 } // namespace net |
| 61 | 45 |
| 62 #endif // NET_PROXY_PROXY_SERVICE_MOJO_H_ | 46 #endif // NET_PROXY_PROXY_SERVICE_MOJO_H_ |
| OLD | NEW |