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

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

Issue 10874077: net: Add a new target 'net_with_v8'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix7 Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « net/net.gyp ('k') | net/proxy/proxy_service.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 (c) 2012 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_H_ 5 #ifndef NET_PROXY_PROXY_SERVICE_H_
6 #define NET_PROXY_PROXY_SERVICE_H_ 6 #define NET_PROXY_PROXY_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 21 matching lines...) Expand all
32 namespace net { 32 namespace net {
33 33
34 class DhcpProxyScriptFetcher; 34 class DhcpProxyScriptFetcher;
35 class HostResolver; 35 class HostResolver;
36 class NetworkDelegate; 36 class NetworkDelegate;
37 class ProxyResolver; 37 class ProxyResolver;
38 class ProxyResolverScriptData; 38 class ProxyResolverScriptData;
39 class ProxyScriptDecider; 39 class ProxyScriptDecider;
40 class ProxyScriptFetcher; 40 class ProxyScriptFetcher;
41 41
42 extern const size_t kDefaultNumPacThreads;
eroman 2012/08/27 19:20:33 Please make this constant a member of ProxyService
tfarina 2012/08/28 01:03:25 Done.
43
42 // This class can be used to resolve the proxy server to use when loading a 44 // This class can be used to resolve the proxy server to use when loading a
43 // HTTP(S) URL. It uses the given ProxyResolver to handle the actual proxy 45 // HTTP(S) URL. It uses the given ProxyResolver to handle the actual proxy
44 // resolution. See ProxyResolverV8 for example. 46 // resolution. See ProxyResolverV8 for example.
45 class NET_EXPORT ProxyService : public NetworkChangeNotifier::IPAddressObserver, 47 class NET_EXPORT ProxyService : public NetworkChangeNotifier::IPAddressObserver,
46 public ProxyConfigService::Observer, 48 public ProxyConfigService::Observer,
47 NON_EXPORTED_BASE(public base::NonThreadSafe) { 49 NON_EXPORTED_BASE(public base::NonThreadSafe) {
48 public: 50 public:
49 // This interface defines the set of policies for when to poll the PAC 51 // This interface defines the set of policies for when to poll the PAC
50 // script for changes. 52 // script for changes.
51 // 53 //
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // 227 //
226 // |host_resolver| points to the host resolving dependency the PAC script 228 // |host_resolver| points to the host resolving dependency the PAC script
227 // should use for any DNS queries. It must remain valid throughout the 229 // should use for any DNS queries. It must remain valid throughout the
228 // lifetime of the ProxyService. 230 // lifetime of the ProxyService.
229 // 231 //
230 // ########################################################################## 232 // ##########################################################################
231 // # See the warnings in net/proxy/proxy_resolver_v8.h describing the 233 // # See the warnings in net/proxy/proxy_resolver_v8.h describing the
232 // # multi-threading model. In order for this to be safe to use, *ALL* the 234 // # multi-threading model. In order for this to be safe to use, *ALL* the
233 // # other V8's running in the process must use v8::Locker. 235 // # other V8's running in the process must use v8::Locker.
234 // ########################################################################## 236 // ##########################################################################
235 static ProxyService* CreateUsingV8ProxyResolver( 237 static ProxyService* CreateUsingV8ProxyResolver(
eroman 2012/08/27 19:20:33 Please move this out of proxy_service.h alltogethe
tfarina 2012/08/28 01:03:25 Done.
236 ProxyConfigService* proxy_config_service, 238 ProxyConfigService* proxy_config_service,
237 size_t num_pac_threads, 239 size_t num_pac_threads,
238 ProxyScriptFetcher* proxy_script_fetcher, 240 ProxyScriptFetcher* proxy_script_fetcher,
239 DhcpProxyScriptFetcher* dhcp_proxy_script_fetcher, 241 DhcpProxyScriptFetcher* dhcp_proxy_script_fetcher,
240 HostResolver* host_resolver, 242 HostResolver* host_resolver,
241 NetLog* net_log, 243 NetLog* net_log,
242 NetworkDelegate* network_delegate); 244 NetworkDelegate* network_delegate);
243 245
244 // Same as CreateUsingV8ProxyResolver, except it uses system libraries 246 // Same as CreateUsingV8ProxyResolver, except it uses system libraries
245 // for evaluating the PAC script if available, otherwise skips 247 // for evaluating the PAC script if available, otherwise skips
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 464
463 base::WaitableEvent event_; 465 base::WaitableEvent event_;
464 CompletionCallback callback_; 466 CompletionCallback callback_;
465 ProxyInfo proxy_info_; 467 ProxyInfo proxy_info_;
466 int result_; 468 int result_;
467 }; 469 };
468 470
469 } // namespace net 471 } // namespace net
470 472
471 #endif // NET_PROXY_PROXY_SERVICE_H_ 473 #endif // NET_PROXY_PROXY_SERVICE_H_
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/proxy/proxy_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698