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

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

Issue 678003002: Correct manual proxy selection for WebSockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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_config.cc » ('j') | net/proxy/proxy_config.cc » ('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 #ifndef NET_PROXY_PROXY_CONFIG_H_ 5 #ifndef NET_PROXY_PROXY_CONFIG_H_
6 #define NET_PROXY_PROXY_CONFIG_H_ 6 #define NET_PROXY_PROXY_CONFIG_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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // Set if |type| is TYPE_PROXY_PER_SCHEME. 130 // Set if |type| is TYPE_PROXY_PER_SCHEME.
131 ProxyList proxies_for_http; 131 ProxyList proxies_for_http;
132 ProxyList proxies_for_https; 132 ProxyList proxies_for_https;
133 ProxyList proxies_for_ftp; 133 ProxyList proxies_for_ftp;
134 134
135 // Used when a fallback has been defined and the url to be proxied doesn't 135 // Used when a fallback has been defined and the url to be proxied doesn't
136 // match any of the standard schemes. 136 // match any of the standard schemes.
137 ProxyList fallback_proxies; 137 ProxyList fallback_proxies;
138 138
139 private: 139 private:
140 // Returns one of {&proxies_for_http, &proxies_for_https, &proxies_for_ftp} 140 // Returns one of {&proxies_for_http, &proxies_for_https, &proxies_for_ftp,
141 // or NULL if it is a scheme that we don't have a mapping 141 // &fallback_proxies} or NULL if it is a scheme that we don't have a mapping
142 // for. Should only call this if the type is TYPE_PROXY_PER_SCHEME. 142 // for. Should only call this if the type is TYPE_PROXY_PER_SCHEME.
143 ProxyList* MapUrlSchemeToProxyListNoFallback(const std::string& scheme); 143 ProxyList* MapUrlSchemeToProxyListNoFallback(const std::string& scheme);
tyoshino (SeeGerritForStatus) 2014/10/27 15:28:29 there's no fallback in this method, but we're goin
Adam Rice 2014/10/28 02:22:23 MapUrlSchemeToProxyList() is not called during par
144
145 // Returns the first of {&fallback_proxies, &proxies_for_https,
146 // &proxies_for_http} that is non-empty, or NULL.
147 ProxyList* GetProxyListForWebSocketScheme();
144 }; 148 };
145 149
146 typedef int ID; 150 typedef int ID;
147 151
148 // Indicates an invalid proxy config. 152 // Indicates an invalid proxy config.
149 static const ID kInvalidConfigID = 0; 153 static const ID kInvalidConfigID = 0;
150 154
151 ProxyConfig(); 155 ProxyConfig();
152 ProxyConfig(const ProxyConfig& config); 156 ProxyConfig(const ProxyConfig& config);
153 ~ProxyConfig(); 157 ~ProxyConfig();
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 ProxyConfigSource source_; 258 ProxyConfigSource source_;
255 259
256 ID id_; 260 ID id_;
257 }; 261 };
258 262
259 } // namespace net 263 } // namespace net
260 264
261 265
262 266
263 #endif // NET_PROXY_PROXY_CONFIG_H_ 267 #endif // NET_PROXY_PROXY_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | net/proxy/proxy_config.cc » ('j') | net/proxy/proxy_config.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698