downloads.ItemView -> downloads.Item
[chromium-blink-merge.git] / net / proxy / proxy_config_service_fixed.h
bloba95bf78636b7d98d65b05292a188b257591f28a7
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.
5 #ifndef NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_
6 #define NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_
8 #include "base/compiler_specific.h"
9 #include "net/base/net_errors.h"
10 #include "net/proxy/proxy_config.h"
11 #include "net/proxy/proxy_config_service.h"
13 namespace net {
15 // Implementation of ProxyConfigService that returns a fixed result.
16 class NET_EXPORT ProxyConfigServiceFixed : public ProxyConfigService {
17 public:
18 explicit ProxyConfigServiceFixed(const ProxyConfig& pc);
19 ~ProxyConfigServiceFixed() override;
21 // ProxyConfigService methods:
22 void AddObserver(Observer* observer) override {}
23 void RemoveObserver(Observer* observer) override {}
24 ConfigAvailability GetLatestProxyConfig(ProxyConfig* config) override;
26 private:
27 ProxyConfig pc_;
30 } // namespace net
32 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_