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

Side by Side Diff: net/socket/transport_client_socket_pool.h

Issue 8526006: Close idle sockets next time we are about to send data. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: code conventions Created 9 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 }; 133 };
134 134
135 class NET_EXPORT_PRIVATE TransportClientSocketPool : public ClientSocketPool { 135 class NET_EXPORT_PRIVATE TransportClientSocketPool : public ClientSocketPool {
136 public: 136 public:
137 TransportClientSocketPool( 137 TransportClientSocketPool(
138 int max_sockets, 138 int max_sockets,
139 int max_sockets_per_group, 139 int max_sockets_per_group,
140 ClientSocketPoolHistograms* histograms, 140 ClientSocketPoolHistograms* histograms,
141 HostResolver* host_resolver, 141 HostResolver* host_resolver,
142 ClientSocketFactory* client_socket_factory, 142 ClientSocketFactory* client_socket_factory,
143 NetLog* net_log); 143 NetLog* net_log,
144 const ClientSocketPoolOptions& options = ClientSocketPoolOptions());
144 145
145 virtual ~TransportClientSocketPool(); 146 virtual ~TransportClientSocketPool();
146 147
147 // ClientSocketPool methods: 148 // ClientSocketPool methods:
148 149
149 virtual int RequestSocket(const std::string& group_name, 150 virtual int RequestSocket(const std::string& group_name,
150 const void* resolve_info, 151 const void* resolve_info,
151 RequestPriority priority, 152 RequestPriority priority,
152 ClientSocketHandle* handle, 153 ClientSocketHandle* handle,
153 OldCompletionCallback* callback, 154 OldCompletionCallback* callback,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 222
222 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); 223 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool);
223 }; 224 };
224 225
225 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, 226 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool,
226 TransportSocketParams); 227 TransportSocketParams);
227 228
228 } // namespace net 229 } // namespace net
229 230
230 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 231 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698