| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_ | 5 #ifndef NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_ |
| 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_ | 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
| 10 #include "net/base/net_export.h" |
| 10 #include "net/proxy/proxy_config.h" | 11 #include "net/proxy/proxy_config.h" |
| 11 #include "net/proxy/proxy_config_service.h" | 12 #include "net/proxy/proxy_config_service.h" |
| 12 | 13 |
| 13 namespace net { | 14 namespace net { |
| 14 | 15 |
| 15 // Implementation of ProxyConfigService that returns a fixed result. | 16 // Implementation of ProxyConfigService that returns a fixed result. |
| 16 class NET_EXPORT ProxyConfigServiceFixed : public ProxyConfigService { | 17 class NET_EXPORT ProxyConfigServiceFixed : public ProxyConfigService { |
| 17 public: | 18 public: |
| 18 explicit ProxyConfigServiceFixed(const ProxyConfig& pc); | 19 explicit ProxyConfigServiceFixed(const ProxyConfig& pc); |
| 19 ~ProxyConfigServiceFixed() override; | 20 ~ProxyConfigServiceFixed() override; |
| 20 | 21 |
| 21 // ProxyConfigService methods: | 22 // ProxyConfigService methods: |
| 22 void AddObserver(Observer* observer) override {} | 23 void AddObserver(Observer* observer) override {} |
| 23 void RemoveObserver(Observer* observer) override {} | 24 void RemoveObserver(Observer* observer) override {} |
| 24 ConfigAvailability GetLatestProxyConfig(ProxyConfig* config) override; | 25 ConfigAvailability GetLatestProxyConfig(ProxyConfig* config) override; |
| 25 | 26 |
| 26 private: | 27 private: |
| 27 ProxyConfig pc_; | 28 ProxyConfig pc_; |
| 28 }; | 29 }; |
| 29 | 30 |
| 30 } // namespace net | 31 } // namespace net |
| 31 | 32 |
| 32 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_ | 33 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_ |
| OLD | NEW |