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

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

Issue 10987043: Receiving Connection: Proxy-Bypass induces proxy fallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
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 #ifndef NET_PROXY_PROXY_INFO_H_ 5 #ifndef NET_PROXY_PROXY_INFO_H_
6 #define NET_PROXY_PROXY_INFO_H_ 6 #define NET_PROXY_PROXY_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // available to try in proxy list_. 110 // available to try in proxy list_.
111 bool Fallback(const BoundNetLog& net_log); 111 bool Fallback(const BoundNetLog& net_log);
112 112
113 // De-prioritizes the proxies that we have cached as not working, by moving 113 // De-prioritizes the proxies that we have cached as not working, by moving
114 // them to the end of the proxy list. 114 // them to the end of the proxy list.
115 void DeprioritizeBadProxies(const ProxyRetryInfoMap& proxy_retry_info); 115 void DeprioritizeBadProxies(const ProxyRetryInfoMap& proxy_retry_info);
116 116
117 // Deletes any entry which doesn't have one of the specified proxy schemes. 117 // Deletes any entry which doesn't have one of the specified proxy schemes.
118 void RemoveProxiesWithoutScheme(int scheme_bit_field); 118 void RemoveProxiesWithoutScheme(int scheme_bit_field);
119 119
120 ProxyList& proxy_list() { return proxy_list_; }
121
120 private: 122 private:
121 friend class ProxyService; 123 friend class ProxyService;
122 124
123 const ProxyRetryInfoMap& proxy_retry_info() const { 125 const ProxyRetryInfoMap& proxy_retry_info() const {
124 return proxy_retry_info_; 126 return proxy_retry_info_;
125 } 127 }
126 128
127 // Reset proxy and config settings. 129 // Reset proxy and config settings.
128 void Reset(); 130 void Reset();
129 131
(...skipping 13 matching lines...) Expand all
143 // Whether the proxy result represent a proxy bypass. 145 // Whether the proxy result represent a proxy bypass.
144 bool did_bypass_proxy_; 146 bool did_bypass_proxy_;
145 147
146 // Whether we used a PAC script for resolving the proxy. 148 // Whether we used a PAC script for resolving the proxy.
147 bool did_use_pac_script_; 149 bool did_use_pac_script_;
148 }; 150 };
149 151
150 } // namespace net 152 } // namespace net
151 153
152 #endif // NET_PROXY_PROXY_INFO_H_ 154 #endif // NET_PROXY_PROXY_INFO_H_
OLDNEW
« net/http/http_network_transaction.cc ('K') | « net/http/http_network_transaction.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698