Index: net/socket/client_socket_pool_base.h |
=================================================================== |
--- net/socket/client_socket_pool_base.h (revision 88789) |
+++ net/socket/client_socket_pool_base.h (working copy) |
@@ -50,6 +50,11 @@ |
class ClientSocketHandle; |
+// Sets the client socket reuse policy (using warmest socket vs. last accessed |
+// socket). |
+// NOTE: 'policy' should be a valid ClientSocketReusePolicy enum value. |
+double SetSocketReusePolicy(int policy); |
willchan no longer on Chromium
2011/06/14 12:01:22
This looks really weird. What does the return valu
Gagan
2011/06/14 18:25:02
Done.
|
+ |
// ConnectJob provides an abstract interface for "connecting" a socket. |
// The connection may involve host resolution, tcp connection, ssl connection, |
// etc. |
@@ -167,6 +172,12 @@ |
NO_IDLE_SOCKETS = 0x1, // Do not return an idle socket. Create a new one. |
}; |
+ enum ClientSocketReusePolicy { |
willchan no longer on Chromium
2011/06/14 12:01:22
It's not clear what the difference is between WARM
Gagan
2011/06/14 18:25:02
Done.
|
+ USE_WARMEST_SOCKET = 0, |
+ USE_WARM_SOCKET = 1, |
+ USE_LAST_ACCESSED_SOCKET = 2, |
+ }; |
+ |
class NET_TEST Request { |
public: |
Request(ClientSocketHandle* handle, |