| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // lifetime of the ProxyService. | 38 // lifetime of the ProxyService. |
| 39 ProxyService* CreateProxyServiceUsingMojoFactory( | 39 ProxyService* CreateProxyServiceUsingMojoFactory( |
| 40 interfaces::ProxyResolverFactory* mojo_proxy_factory, | 40 interfaces::ProxyResolverFactory* mojo_proxy_factory, |
| 41 ProxyConfigService* proxy_config_service, | 41 ProxyConfigService* proxy_config_service, |
| 42 ProxyScriptFetcher* proxy_script_fetcher, | 42 ProxyScriptFetcher* proxy_script_fetcher, |
| 43 DhcpProxyScriptFetcher* dhcp_proxy_script_fetcher, | 43 DhcpProxyScriptFetcher* dhcp_proxy_script_fetcher, |
| 44 HostResolver* host_resolver, | 44 HostResolver* host_resolver, |
| 45 NetLog* net_log, | 45 NetLog* net_log, |
| 46 NetworkDelegate* network_delegate); | 46 NetworkDelegate* network_delegate); |
| 47 | 47 |
| 48 // Creates a proxy service that connects to an in-process Mojo proxy resolver | |
| 49 // service. See above for information about other arguments. | |
| 50 // | |
| 51 // ########################################################################## | |
| 52 // # See the warnings in net/proxy/proxy_resolver_v8.h describing the | |
| 53 // # multi-threading model. In order for this to be safe to use, *ALL* the | |
| 54 // # other V8's running in the process must use v8::Locker. | |
| 55 // ########################################################################## | |
| 56 ProxyService* CreateProxyServiceUsingMojoInProcess( | |
| 57 ProxyConfigService* proxy_config_service, | |
| 58 ProxyScriptFetcher* proxy_script_fetcher, | |
| 59 DhcpProxyScriptFetcher* dhcp_proxy_script_fetcher, | |
| 60 HostResolver* host_resolver, | |
| 61 NetLog* net_log, | |
| 62 NetworkDelegate* network_delegate); | |
| 63 | |
| 64 } // namespace net | 48 } // namespace net |
| 65 | 49 |
| 66 #endif // NET_PROXY_PROXY_SERVICE_MOJO_H_ | 50 #endif // NET_PROXY_PROXY_SERVICE_MOJO_H_ |
| OLD | NEW |