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

Unified Diff: net/proxy/proxy_server.cc

Issue 1808001: Implement a 15 connection per proxy server limit. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Remove extra newline. Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: net/proxy/proxy_server.cc
diff --git a/net/proxy/proxy_server.cc b/net/proxy/proxy_server.cc
index 6c47feee06e02c3a58f5f3006eacf227c9e1b091..49038801d662a5283ad138a428d460233c595aa9 100644
--- a/net/proxy/proxy_server.cc
+++ b/net/proxy/proxy_server.cc
@@ -84,6 +84,13 @@ std::string ProxyServer::host_and_port() const {
return host_ + ":" + IntToString(port_);
}
+HostPortPair ProxyServer::host_port_pair() const {
+ // Doesn't make sense to call this if the URI scheme doesn't
+ // have concept of a host.
+ DCHECK(is_valid() && !is_direct());
+ return HostPortPair(host_, port_);
+}
+
// static
ProxyServer ProxyServer::FromURI(const std::string& uri,
Scheme default_scheme) {

Powered by Google App Engine
This is Rietveld 408576698