Chromium Code Reviews| 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..48be5c3a08ae1c515ccb3dacd56b86c42a19dd3c 100644 |
| --- a/net/socket/client_socket_pool_manager.h |
| +++ b/net/socket/client_socket_pool_manager.h |
| @@ -44,6 +44,15 @@ enum DefaultMaxValues { kDefaultMaxSocketsPerProxyServer = 32 }; |
| class NET_EXPORT_PRIVATE ClientSocketPoolManager { |
| public: |
| + enum SocketGroupType { |
| + SSL_GROUP, // For all TLS sockets. |
| + NORMAL_GROUP, // For normal HTTP sockets. |
| + FTP_GROUP // For FTP sockets. |
|
mmenke
2015/04/07 19:24:16
optional: Maybe "For FTP sockets" -> "For FTP soc
Ryan Hamilton
2015/04/08 03:44:46
Done.
|
| + }; |
| + |
| + // Returns the correct socket group type for |scheme|. |
| + static SocketGroupType GroupTypeFromScheme(const std::string& scheme); |
| + |
| ClientSocketPoolManager(); |
| virtual ~ClientSocketPoolManager(); |
| @@ -89,8 +98,14 @@ class NET_EXPORT_PRIVATE ClientSocketPoolManager { |
| // |resolution_callback| will be invoked after the the hostname is |
| // resolved. If |resolution_callback| does not return OK, then the |
| // connection will be aborted with that value. |
| +// If |want_spdy_over_ssl| is true, then after the SSL handshake is complete, |
| +// SPDY must have been negotiationed or else it will be considered an error. |
|
mmenke
2015/04/07 19:24:16
negotiationed -> negotiated
Ryan Hamilton
2015/04/08 03:44:46
Done.
|
| +// If |force_spdy_over_ssl| is true, then SPDY will be assumed to be supported |
| +// for all SSL connections. |
| +// TODO(rch): remove force_spdy_over_ssl. |
| 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 +131,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 +181,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, |