OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_ |
| 6 #define CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 |
| 11 class CommandLine; |
| 12 class MessageLoop; |
| 13 class PrefProxyConfigTracker; |
| 14 |
| 15 namespace net { |
| 16 class NetLog; |
| 17 class ProxyConfigService; |
| 18 class ProxyService; |
| 19 class URLRequestContext; |
| 20 } // net |
| 21 |
| 22 class ProxyServiceFactory { |
| 23 public: |
| 24 // Creates a ProxyConfigService that delivers the system preferences |
| 25 // (or the respective ChromeOS equivalent). |
| 26 static net::ProxyConfigService* CreateProxyConfigService( |
| 27 PrefProxyConfigTracker* proxy_config_tracker); |
| 28 |
| 29 // Create a proxy service according to the options on command line. |
| 30 static net::ProxyService* CreateProxyService( |
| 31 net::NetLog* net_log, |
| 32 net::URLRequestContext* context, |
| 33 net::ProxyConfigService* proxy_config_service, |
| 34 const CommandLine& command_line); |
| 35 |
| 36 private: |
| 37 DISALLOW_IMPLICIT_CONSTRUCTORS(ProxyServiceFactory); |
| 38 }; |
| 39 |
| 40 #endif // CHROME_BROWSER_NET_PROXY_SERVICE_FACTORY_H_ |
OLD | NEW |