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 #include "net/proxy/proxy_config_service_fixed.h" | 5 #include "net/proxy/proxy_config_service_fixed.h" |
6 | 6 |
7 namespace net { | 7 namespace net { |
8 | 8 |
9 ProxyConfigServiceFixed::ProxyConfigServiceFixed(const ProxyConfig& pc) | 9 ProxyConfigServiceFixed::ProxyConfigServiceFixed(const ProxyConfig& pc) |
10 : pc_(pc) { | 10 : pc_(pc) { |
11 } | 11 } |
12 | 12 |
13 ProxyConfigServiceFixed::~ProxyConfigServiceFixed() {} | 13 ProxyConfigServiceFixed::~ProxyConfigServiceFixed() { |
| 14 } |
14 | 15 |
15 ProxyConfigService::ConfigAvailability | 16 ProxyConfigService::ConfigAvailability |
16 ProxyConfigServiceFixed::GetLatestProxyConfig(ProxyConfig* config) { | 17 ProxyConfigServiceFixed::GetLatestProxyConfig(ProxyConfig* config) { |
17 *config = pc_; | 18 *config = pc_; |
18 return CONFIG_VALID; | 19 return CONFIG_VALID; |
19 } | 20 } |
20 | 21 |
21 } // namespace net | 22 } // namespace net |
OLD | NEW |