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

Unified Diff: net/socket/client_socket_pool_manager.h

Issue 9764003: Increase number of max sockets per group for WebSocket connections. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 8 years, 9 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
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | net/socket/client_socket_pool_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7c1f86587c4a8b6aa25d98af9ecafd9ce5dd6c6d..a175e3d81088109964b10d93c3ed0c1df3209c2e 100644
--- a/net/socket/client_socket_pool_manager.h
+++ b/net/socket/client_socket_pool_manager.h
@@ -13,6 +13,7 @@
#include "net/base/completion_callback.h"
#include "net/base/net_export.h"
#include "net/base/request_priority.h"
+#include "net/http/http_network_session.h"
class GURL;
@@ -47,14 +48,22 @@ class NET_EXPORT_PRIVATE ClientSocketPoolManager {
// The setter methods below affect only newly created socket pools after the
// methods are called. Normally they should be called at program startup
// before any ClientSocketPoolManagerImpl is created.
- static int max_sockets_per_pool();
- static void set_max_sockets_per_pool(int socket_count);
-
- static int max_sockets_per_group();
- static void set_max_sockets_per_group(int socket_count);
-
- static int max_sockets_per_proxy_server();
- static void set_max_sockets_per_proxy_server(int socket_count);
+ static int max_sockets_per_pool(HttpNetworkSession::SocketPoolType pool_type);
+ static void set_max_sockets_per_pool(
+ HttpNetworkSession::SocketPoolType pool_type,
+ int socket_count);
+
+ static int max_sockets_per_group(
+ HttpNetworkSession::SocketPoolType pool_type);
+ static void set_max_sockets_per_group(
+ HttpNetworkSession::SocketPoolType pool_type,
+ int socket_count);
+
+ static int max_sockets_per_proxy_server(
+ HttpNetworkSession::SocketPoolType pool_type);
+ static void set_max_sockets_per_proxy_server(
+ HttpNetworkSession::SocketPoolType pool_type,
+ int socket_count);
virtual void FlushSocketPools() = 0;
virtual void CloseIdleSockets() = 0;
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | net/socket/client_socket_pool_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698