1 // Copyright (c) 2006-2008 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 NET_PROXY_PROXY_CONFIG_SERVICE_H_ 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_H_ 7 8 namespace net { 9 10 class ProxyConfig; 11 12 // Synchronously fetch the system's proxy configuration settings. Called on 13 // the IO Thread. 14 class ProxyConfigService { 15 public: 16 virtual ~ProxyConfigService() {} 17 18 // Get the proxy configuration. Returns OK if successful or an error code if 19 // otherwise. |config| should be in its initial state when this method is 20 // called. 21 virtual int GetProxyConfig(ProxyConfig* config) = 0; 22 }; 23 24 } // namespace net 25 26 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_H_ 27