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

Unified Diff: net/socket/socks_client_socket_pool.h

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/socket/socks_client_socket_pool.h
diff --git a/net/socket/socks_client_socket_pool.h b/net/socket/socks_client_socket_pool.h
index 2c306005d6ff9ca028ebd91639b2177fa17431c2..a786dc1125eb9c3ee89e23a800879065abf08eac 100644
--- a/net/socket/socks_client_socket_pool.h
+++ b/net/socket/socks_client_socket_pool.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/scoped_ptr.h"
#include "base/time.h"
+#include "net/base/host_port_pair.h"
#include "net/base/host_resolver.h"
#include "net/proxy/proxy_server.h"
#include "net/socket/client_socket_pool_base.h"
@@ -25,10 +26,10 @@ class ConnectJobFactory;
class SOCKSSocketParams {
public:
SOCKSSocketParams(const TCPSocketParams& proxy_server, bool socks_v5,
- const std::string& destination_host, int destination_port,
+ const HostPortPair& host_port_pair,
RequestPriority priority, const GURL& referrer)
: tcp_params_(proxy_server),
- destination_(destination_host, destination_port),
+ destination_(host_port_pair.host, host_port_pair.port),
socks_v5_(socks_v5) {
// The referrer is used by the DNS prefetch system to correlate resolutions
// with the page that triggered them. It doesn't impact the actual addresses

Powered by Google App Engine
This is Rietveld 408576698