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

Side by Side Diff: components/proxy_config/ios/proxy_service_factory.h

Issue 2888583002: Move ProxyServiceFactory to components/proxy_service/ios. (Closed)
Patch Set: Update DEPS. Created 3 years, 7 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 | « components/proxy_config/ios/DEPS ('k') | components/proxy_config/ios/proxy_service_factory.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 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 COMPONENTS_PROXY_CONFIG_IOS_PROXY_SERVICE_FACTORY_H_
6 #define IOS_CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_ 6 #define COMPONENTS_PROXY_CONFIG_IOS_PROXY_SERVICE_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/proxy_config/proxy_config_export.h"
11 12
12 class PrefProxyConfigTracker; 13 class PrefProxyConfigTracker;
13 class PrefService; 14 class PrefService;
14 15
15 namespace net { 16 namespace net {
16 class NetLog; 17 class NetLog;
17 class NetworkDelegate; 18 class NetworkDelegate;
18 class ProxyConfigService; 19 class ProxyConfigService;
19 class ProxyService; 20 class ProxyService;
20 class URLRequestContext; 21 class URLRequestContext;
21 } 22 }
22 23
23 namespace ios { 24 class PROXY_CONFIG_EXPORT ProxyServiceFactory {
24
25 class ProxyServiceFactory {
26 public: 25 public:
27 // Creates a ProxyConfigService that delivers the system preferences. 26 // Creates a ProxyConfigService that delivers the system preferences.
28 static std::unique_ptr<net::ProxyConfigService> CreateProxyConfigService( 27 static std::unique_ptr<net::ProxyConfigService> CreateProxyConfigService(
29 PrefProxyConfigTracker* tracker); 28 PrefProxyConfigTracker* tracker);
30 29
31 // Creates a PrefProxyConfigTracker that tracks browser state preferences. 30 // Creates a PrefProxyConfigTracker that tracks browser state preferences.
32 static std::unique_ptr<PrefProxyConfigTracker> 31 static std::unique_ptr<PrefProxyConfigTracker>
33 CreatePrefProxyConfigTrackerOfProfile(PrefService* browser_state_prefs, 32 CreatePrefProxyConfigTrackerOfProfile(PrefService* browser_state_prefs,
34 PrefService* local_state_prefs); 33 PrefService* local_state_prefs);
35 34
36 // Creates a PrefProxyConfigTracker that tracks local state only. This tracker 35 // Creates a PrefProxyConfigTracker that tracks local state only. This tracker
37 // should be used for the system request context. 36 // should be used for the system request context.
38 static std::unique_ptr<PrefProxyConfigTracker> 37 static std::unique_ptr<PrefProxyConfigTracker>
39 CreatePrefProxyConfigTrackerOfLocalState(PrefService* local_state_prefs); 38 CreatePrefProxyConfigTrackerOfLocalState(PrefService* local_state_prefs);
40 39
41 // Create a proxy service. 40 // Create a proxy service.
42 static std::unique_ptr<net::ProxyService> CreateProxyService( 41 static std::unique_ptr<net::ProxyService> CreateProxyService(
43 net::NetLog* net_log, 42 net::NetLog* net_log,
44 net::URLRequestContext* context, 43 net::URLRequestContext* context,
45 net::NetworkDelegate* network_delegate, 44 net::NetworkDelegate* network_delegate,
46 std::unique_ptr<net::ProxyConfigService> proxy_config_service, 45 std::unique_ptr<net::ProxyConfigService> proxy_config_service,
47 bool quick_check_enabled); 46 bool quick_check_enabled);
48 47
49 private: 48 private:
50 DISALLOW_COPY_AND_ASSIGN(ProxyServiceFactory); 49 DISALLOW_COPY_AND_ASSIGN(ProxyServiceFactory);
51 }; 50 };
52 51
53 } // namespace ios 52 #endif // COMPONENTS_PROXY_CONFIG_IOS_PROXY_SERVICE_FACTORY_H_
54
55 #endif // IOS_CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « components/proxy_config/ios/DEPS ('k') | components/proxy_config/ios/proxy_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698