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

Unified Diff: net/socket/client_socket_pool_manager.h

Issue 1051023003: Change ClientSocketPoolManager::InitSocketHandleForHttpRequest and friends (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/client_socket_pool_manager.h
diff --git a/net/socket/client_socket_pool_manager.h b/net/socket/client_socket_pool_manager.h
index 12154809870240577c0faaa17ede820f7f7ad0b8..bab8268bc533f70b29afd401cfa6e0cf4f6dbaa3 100644
--- a/net/socket/client_socket_pool_manager.h
+++ b/net/socket/client_socket_pool_manager.h
@@ -44,6 +44,11 @@ enum DefaultMaxValues { kDefaultMaxSocketsPerProxyServer = 32 };
class NET_EXPORT_PRIVATE ClientSocketPoolManager {
public:
+ enum SocketGroupType { NORMAL_GROUP, SSL_GROUP, FTP_GROUP };
mmenke 2015/04/07 16:36:58 It's not clear what a group type is, particular wi
Ryan Hamilton 2015/04/07 19:07:31 Done. Hopefully this helps. now that the force_spd
+
+ // Returns the correct socket group type for |scheme|.
+ static SocketGroupType GroupTypeFromScheme(const std::string& scheme);
+
ClientSocketPoolManager();
virtual ~ClientSocketPoolManager();
@@ -90,7 +95,8 @@ class NET_EXPORT_PRIVATE ClientSocketPoolManager {
// resolved. If |resolution_callback| does not return OK, then the
// connection will be aborted with that value.
int InitSocketHandleForHttpRequest(
- const GURL& request_url,
+ ClientSocketPoolManager::SocketGroupType group_type,
+ const HostPortPair& endpoint,
const HttpRequestHeaders& request_extra_headers,
int request_load_flags,
RequestPriority request_priority,
@@ -116,7 +122,8 @@ int InitSocketHandleForHttpRequest(
// connection will be aborted with that value.
// This function uses WEBSOCKET_SOCKET_POOL socket pools.
int InitSocketHandleForWebSocketRequest(
- const GURL& request_url,
+ ClientSocketPoolManager::SocketGroupType group_type,
+ const HostPortPair& endpoint,
const HttpRequestHeaders& request_extra_headers,
int request_load_flags,
RequestPriority request_priority,
@@ -165,7 +172,8 @@ NET_EXPORT int InitSocketHandleForTlsConnect(
// Similar to InitSocketHandleForHttpRequest except that it initiates the
// desired number of preconnect streams from the relevant socket pool.
int PreconnectSocketsForHttpRequest(
- const GURL& request_url,
+ ClientSocketPoolManager::SocketGroupType group_type,
+ const HostPortPair& endpoint,
const HttpRequestHeaders& request_extra_headers,
int request_load_flags,
RequestPriority request_priority,

Powered by Google App Engine
This is Rietveld 408576698