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 IOS_CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_ | 5 #ifndef IOS_CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_ |
6 #define IOS_CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_ | 6 #define IOS_CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 // Creates a PrefProxyConfigTracker that tracks local state only. This tracker | 36 // Creates a PrefProxyConfigTracker that tracks local state only. This tracker |
37 // should be used for the system request context. | 37 // should be used for the system request context. |
38 static scoped_ptr<PrefProxyConfigTracker> | 38 static scoped_ptr<PrefProxyConfigTracker> |
39 CreatePrefProxyConfigTrackerOfLocalState(PrefService* local_state_prefs); | 39 CreatePrefProxyConfigTrackerOfLocalState(PrefService* local_state_prefs); |
40 | 40 |
41 // Create a proxy service. | 41 // Create a proxy service. |
42 static scoped_ptr<net::ProxyService> CreateProxyService( | 42 static scoped_ptr<net::ProxyService> CreateProxyService( |
43 net::NetLog* net_log, | 43 net::NetLog* net_log, |
44 net::URLRequestContext* context, | 44 net::URLRequestContext* context, |
45 net::NetworkDelegate* network_delegate, | 45 net::NetworkDelegate* network_delegate, |
46 net::ProxyConfigService* proxy_config_service, | 46 scoped_ptr<net::ProxyConfigService> proxy_config_service, |
47 bool quick_check_enabled); | 47 bool quick_check_enabled); |
48 | 48 |
49 private: | 49 private: |
50 DISALLOW_COPY_AND_ASSIGN(ProxyServiceFactory); | 50 DISALLOW_COPY_AND_ASSIGN(ProxyServiceFactory); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace ios | 53 } // namespace ios |
54 | 54 |
55 #endif // IOS_CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_ | 55 #endif // IOS_CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_ |
OLD | NEW |