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

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

Issue 2533063002: Fix Net.Socket.IdleSocketTimeSaving histogram (Closed)
Patch Set: self review Created 4 years 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
« no previous file with comments | « net/socket/socks_client_socket_pool.cc ('k') | net/socket/ssl_client_socket_pool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SSL_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "net/base/load_timing_info.h"
14 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
15 #include "net/base/privacy_mode.h" 16 #include "net/base/privacy_mode.h"
16 #include "net/http/http_response_info.h" 17 #include "net/http/http_response_info.h"
17 #include "net/socket/client_socket_pool.h" 18 #include "net/socket/client_socket_pool.h"
18 #include "net/socket/client_socket_pool_base.h" 19 #include "net/socket/client_socket_pool_base.h"
19 #include "net/socket/connection_attempts.h" 20 #include "net/socket/connection_attempts.h"
20 #include "net/socket/ssl_client_socket.h" 21 #include "net/socket/ssl_client_socket.h"
21 #include "net/ssl/ssl_config_service.h" 22 #include "net/ssl/ssl_config_service.h"
22 23
23 namespace net { 24 namespace net {
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 const NetLogWithSource& net_log) override; 212 const NetLogWithSource& net_log) override;
212 213
213 void RequestSockets(const std::string& group_name, 214 void RequestSockets(const std::string& group_name,
214 const void* params, 215 const void* params,
215 int num_sockets, 216 int num_sockets,
216 const NetLogWithSource& net_log) override; 217 const NetLogWithSource& net_log) override;
217 218
218 void CancelRequest(const std::string& group_name, 219 void CancelRequest(const std::string& group_name,
219 ClientSocketHandle* handle) override; 220 ClientSocketHandle* handle) override;
220 221
221 void ReleaseSocket(const std::string& group_name, 222 void ReleaseSocket(
222 std::unique_ptr<StreamSocket> socket, 223 const std::string& group_name,
223 int id) override; 224 std::unique_ptr<StreamSocket> socket,
225 int id,
226 const LoadTimingInfo::ConnectTiming& connect_timing) override;
224 227
225 void FlushWithError(int error) override; 228 void FlushWithError(int error) override;
226 229
227 void CloseIdleSockets() override; 230 void CloseIdleSockets() override;
228 231
229 int IdleSocketCount() const override; 232 int IdleSocketCount() const override;
230 233
231 int IdleSocketCountInGroup(const std::string& group_name) const override; 234 int IdleSocketCountInGroup(const std::string& group_name) const override;
232 235
233 LoadState GetLoadState(const std::string& group_name, 236 LoadState GetLoadState(const std::string& group_name,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 HttpProxyClientSocketPool* const http_proxy_pool_; 299 HttpProxyClientSocketPool* const http_proxy_pool_;
297 PoolBase base_; 300 PoolBase base_;
298 const scoped_refptr<SSLConfigService> ssl_config_service_; 301 const scoped_refptr<SSLConfigService> ssl_config_service_;
299 302
300 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); 303 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool);
301 }; 304 };
302 305
303 } // namespace net 306 } // namespace net
304 307
305 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ 308 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/socks_client_socket_pool.cc ('k') | net/socket/ssl_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698