Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: net/proxy/proxy_info.cc

Issue 1286373002: Refactored not to expose raw pointers on ProxyList class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/proxy/proxy_list.h » ('j') | net/proxy/proxy_list.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 void ProxyInfo::OverrideProxyList(const ProxyList& proxy_list) { 62 void ProxyInfo::OverrideProxyList(const ProxyList& proxy_list) {
63 proxy_list_ = proxy_list; 63 proxy_list_ = proxy_list;
64 } 64 }
65 65
66 std::string ProxyInfo::ToPacString() const { 66 std::string ProxyInfo::ToPacString() const {
67 return proxy_list_.ToPacString(); 67 return proxy_list_.ToPacString();
68 } 68 }
69 69
70 bool ProxyInfo::Fallback(int net_error, const BoundNetLog& net_log) { 70 bool ProxyInfo::Fallback(int net_error, const BoundNetLog& net_log) {
71 return proxy_list_.Fallback(&proxy_retry_info_, net_error, net_log); 71 return proxy_list_.Fallback(proxy_retry_info_, net_error, net_log);
72 } 72 }
73 73
74 void ProxyInfo::DeprioritizeBadProxies( 74 void ProxyInfo::DeprioritizeBadProxies(
75 const ProxyRetryInfoMap& proxy_retry_info) { 75 const ProxyRetryInfoMap& proxy_retry_info) {
76 proxy_list_.DeprioritizeBadProxies(proxy_retry_info); 76 proxy_list_.DeprioritizeBadProxies(proxy_retry_info);
77 } 77 }
78 78
79 void ProxyInfo::RemoveProxiesWithoutScheme(int scheme_bit_field) { 79 void ProxyInfo::RemoveProxiesWithoutScheme(int scheme_bit_field) {
80 proxy_list_.RemoveProxiesWithoutScheme(scheme_bit_field); 80 proxy_list_.RemoveProxiesWithoutScheme(scheme_bit_field);
81 } 81 }
82 82
83 void ProxyInfo::Reset() { 83 void ProxyInfo::Reset() {
84 proxy_resolve_start_time_ = base::TimeTicks(); 84 proxy_resolve_start_time_ = base::TimeTicks();
85 proxy_resolve_end_time_ = base::TimeTicks(); 85 proxy_resolve_end_time_ = base::TimeTicks();
86 proxy_list_.Clear(); 86 proxy_list_.Clear();
87 proxy_retry_info_.clear(); 87 proxy_retry_info_.clear();
88 config_id_ = ProxyConfig::kInvalidConfigID; 88 config_id_ = ProxyConfig::kInvalidConfigID;
89 config_source_ = PROXY_CONFIG_SOURCE_UNKNOWN; 89 config_source_ = PROXY_CONFIG_SOURCE_UNKNOWN;
90 did_bypass_proxy_ = false; 90 did_bypass_proxy_ = false;
91 did_use_pac_script_ = false; 91 did_use_pac_script_ = false;
92 } 92 }
93 93
94 } // namespace net 94 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/proxy/proxy_list.h » ('j') | net/proxy/proxy_list.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698