1 // Copyright (c) 2010 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_ANDROID_H_ 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_ANDROID_H_ 7 #pragma once 8 9 #include "net/proxy/proxy_config_service.h" 10 11 #include <string> 12 13 #include "base/observer_list.h" 14 15 namespace net { 16 17 class ProxyConfigServiceAndroid : public ProxyConfigService { 18 public: 19 // ProxyConfigService implementation: 20 virtual void AddObserver(Observer* observer); 21 virtual void RemoveObserver(Observer* observer); 22 virtual ConfigAvailability GetLatestProxyConfig(ProxyConfig* config); 23 virtual void OnLazyPoll() {} 24 25 // For Android to update the proxy service config 26 void UpdateProxySettings(std::string& host, std::string& exclusionList); 27 28 private: 29 ObserverList<Observer> observers_; 30 std::string m_proxy; 31 }; 32 33 } // namespace net 34 35 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_ANDROID_H_ 36