Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Side by Side Diff: net/proxy/proxy_service_mojo.h

Issue 910343003: Create an in-process v8 proxy resolver using Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-pac-complete-patch
Patch Set: Remove extra space. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/proxy/proxy_resolver_mojo_unittest.cc ('k') | net/proxy/proxy_service_mojo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 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_V8_H_ 5 #ifndef NET_PROXY_PROXY_SERVICE_MOJO_H_
6 #define NET_PROXY_PROXY_SERVICE_V8_H_ 6 #define NET_PROXY_PROXY_SERVICE_MOJO_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "net/base/net_export.h"
10 9
11 namespace net { 10 namespace net {
12 11
13 class DhcpProxyScriptFetcher; 12 class DhcpProxyScriptFetcher;
14 class HostResolver; 13 class HostResolver;
14 class MojoProxyResolverFactory;
15 class NetLog; 15 class NetLog;
16 class NetworkDelegate; 16 class NetworkDelegate;
17 class ProxyConfigService; 17 class ProxyConfigService;
18 class ProxyScriptFetcher; 18 class ProxyScriptFetcher;
19 class ProxyService; 19 class ProxyService;
20 20
21 // Creates a proxy service that polls |proxy_config_service| to notice when 21 // Creates a proxy service that uses |mojo_proxy_factory| to create and connect
22 // the proxy settings change. We take ownership of |proxy_config_service|. 22 // to a Mojo proxy resolver service. This proxy service polls
23 // |proxy_config_service| to notice when the proxy settings change. We take
24 // ownership of |proxy_config_service|.
23 // 25 //
24 // |proxy_script_fetcher| specifies the dependency to use for downloading 26 // |proxy_script_fetcher| specifies the dependency to use for downloading
25 // any PAC scripts. The resulting ProxyService will take ownership of it. 27 // any PAC scripts. The resulting ProxyService will take ownership of it.
26 // 28 //
27 // |dhcp_proxy_script_fetcher| specifies the dependency to use for attempting 29 // |dhcp_proxy_script_fetcher| specifies the dependency to use for attempting
28 // to retrieve the most appropriate PAC script configured in DHCP. The 30 // to retrieve the most appropriate PAC script configured in DHCP. The
29 // resulting ProxyService will take ownership of it. 31 // resulting ProxyService will take ownership of it.
30 // 32 //
31 // |host_resolver| points to the host resolving dependency the PAC script 33 // |host_resolver| points to the host resolving dependency the PAC script
32 // should use for any DNS queries. It must remain valid throughout the 34 // should use for any DNS queries. It must remain valid throughout the
33 // lifetime of the ProxyService. 35 // lifetime of the ProxyService.
36 ProxyService* CreateProxyServiceUsingMojoFactory(
37 MojoProxyResolverFactory* mojo_proxy_factory,
38 ProxyConfigService* proxy_config_service,
39 ProxyScriptFetcher* proxy_script_fetcher,
40 DhcpProxyScriptFetcher* dhcp_proxy_script_fetcher,
41 HostResolver* host_resolver,
42 NetLog* net_log,
43 NetworkDelegate* network_delegate);
44
45 // Creates a proxy service that connects to an in-process Mojo proxy resolver
46 // service. See above for information about other arguments.
34 // 47 //
35 // ########################################################################## 48 // ##########################################################################
36 // # See the warnings in net/proxy/proxy_resolver_v8.h describing the 49 // # See the warnings in net/proxy/proxy_resolver_v8.h describing the
37 // # multi-threading model. In order for this to be safe to use, *ALL* the 50 // # multi-threading model. In order for this to be safe to use, *ALL* the
38 // # other V8's running in the process must use v8::Locker. 51 // # other V8's running in the process must use v8::Locker.
39 // ########################################################################## 52 // ##########################################################################
40 NET_EXPORT ProxyService* CreateProxyServiceUsingV8ProxyResolver( 53 ProxyService* CreateProxyServiceUsingMojoInProcess(
41 ProxyConfigService* proxy_config_service, 54 ProxyConfigService* proxy_config_service,
42 ProxyScriptFetcher* proxy_script_fetcher, 55 ProxyScriptFetcher* proxy_script_fetcher,
43 DhcpProxyScriptFetcher* dhcp_proxy_script_fetcher, 56 DhcpProxyScriptFetcher* dhcp_proxy_script_fetcher,
44 HostResolver* host_resolver, 57 HostResolver* host_resolver,
45 NetLog* net_log, 58 NetLog* net_log,
46 NetworkDelegate* network_delegate); 59 NetworkDelegate* network_delegate);
47 60
48 } // namespace net 61 } // namespace net
49 62
50 #endif // NET_PROXY_PROXY_SERVICE_V8_H_ 63 #endif // NET_PROXY_PROXY_SERVICE_MOJO_H_
OLDNEW
« no previous file with comments | « net/proxy/proxy_resolver_mojo_unittest.cc ('k') | net/proxy/proxy_service_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698