cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / ios / chrome / browser / net / proxy_service_factory.h
blob6d47246afafd8e7f1a6cd38bff48346cd4b5926e
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
3 // found in the LICENSE file.
5 #ifndef IOS_CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_
6 #define IOS_CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_
8 #include "base/basictypes.h"
9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
12 class PrefProxyConfigTracker;
13 class PrefService;
15 namespace net {
16 class NetLog;
17 class NetworkDelegate;
18 class ProxyConfigService;
19 class ProxyService;
20 class URLRequestContext;
23 namespace ios {
25 class ProxyServiceFactory {
26 public:
27 // Creates a ProxyConfigService that delivers the system preferences.
28 static scoped_ptr<net::ProxyConfigService> CreateProxyConfigService(
29 PrefProxyConfigTracker* tracker);
31 // Creates a PrefProxyConfigTracker that tracks browser state preferences.
32 static scoped_ptr<PrefProxyConfigTracker>
33 CreatePrefProxyConfigTrackerOfProfile(PrefService* browser_state_prefs,
34 PrefService* local_state_prefs);
36 // Creates a PrefProxyConfigTracker that tracks local state only. This tracker
37 // should be used for the system request context.
38 static scoped_ptr<PrefProxyConfigTracker>
39 CreatePrefProxyConfigTrackerOfLocalState(PrefService* local_state_prefs);
41 // Create a proxy service.
42 static scoped_ptr<net::ProxyService> CreateProxyService(
43 net::NetLog* net_log,
44 net::URLRequestContext* context,
45 net::NetworkDelegate* network_delegate,
46 net::ProxyConfigService* proxy_config_service,
47 bool quick_check_enabled);
49 private:
50 DISALLOW_COPY_AND_ASSIGN(ProxyServiceFactory);
53 } // namespace ios
55 #endif // IOS_CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_