| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 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_info.h" | 5 #include "net/proxy/proxy_info.h" |
| 6 | 6 |
| 7 #include "net/proxy/proxy_retry_info.h" | 7 #include "net/proxy/proxy_retry_info.h" |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| 11 ProxyInfo::ProxyInfo() : config_id_(ProxyConfig::INVALID_ID) { | 11 ProxyInfo::ProxyInfo() : config_id_(ProxyConfig::kInvalidConfigID) { |
| 12 } | 12 } |
| 13 | 13 |
| 14 ProxyInfo::~ProxyInfo() { | 14 ProxyInfo::~ProxyInfo() { |
| 15 } | 15 } |
| 16 | 16 |
| 17 void ProxyInfo::Use(const ProxyInfo& other) { | 17 void ProxyInfo::Use(const ProxyInfo& other) { |
| 18 proxy_list_ = other.proxy_list_; | 18 proxy_list_ = other.proxy_list_; |
| 19 } | 19 } |
| 20 | 20 |
| 21 void ProxyInfo::UseDirect() { | 21 void ProxyInfo::UseDirect() { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 41 void ProxyInfo::DeprioritizeBadProxies( | 41 void ProxyInfo::DeprioritizeBadProxies( |
| 42 const ProxyRetryInfoMap& proxy_retry_info) { | 42 const ProxyRetryInfoMap& proxy_retry_info) { |
| 43 proxy_list_.DeprioritizeBadProxies(proxy_retry_info); | 43 proxy_list_.DeprioritizeBadProxies(proxy_retry_info); |
| 44 } | 44 } |
| 45 | 45 |
| 46 void ProxyInfo::RemoveProxiesWithoutScheme(int scheme_bit_field) { | 46 void ProxyInfo::RemoveProxiesWithoutScheme(int scheme_bit_field) { |
| 47 proxy_list_.RemoveProxiesWithoutScheme(scheme_bit_field); | 47 proxy_list_.RemoveProxiesWithoutScheme(scheme_bit_field); |
| 48 } | 48 } |
| 49 | 49 |
| 50 } // namespace net | 50 } // namespace net |
| OLD | NEW |