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

Side by Side Diff: net/http/http_proxy_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
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_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_
6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ 6 #define NET_HTTP_HTTP_PROXY_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/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "net/base/host_port_pair.h" 15 #include "net/base/host_port_pair.h"
16 #include "net/base/load_timing_info.h"
16 #include "net/base/net_export.h" 17 #include "net/base/net_export.h"
17 #include "net/http/http_auth.h" 18 #include "net/http/http_auth.h"
18 #include "net/http/http_response_info.h" 19 #include "net/http/http_response_info.h"
19 #include "net/http/proxy_client_socket.h" 20 #include "net/http/proxy_client_socket.h"
20 #include "net/socket/client_socket_pool.h" 21 #include "net/socket/client_socket_pool.h"
21 #include "net/socket/client_socket_pool_base.h" 22 #include "net/socket/client_socket_pool_base.h"
22 #include "net/socket/ssl_client_socket.h" 23 #include "net/socket/ssl_client_socket.h"
23 #include "net/spdy/spdy_session.h" 24 #include "net/spdy/spdy_session.h"
24 25
25 namespace net { 26 namespace net {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 const NetLogWithSource& net_log) override; 159 const NetLogWithSource& net_log) override;
159 160
160 void RequestSockets(const std::string& group_name, 161 void RequestSockets(const std::string& group_name,
161 const void* params, 162 const void* params,
162 int num_sockets, 163 int num_sockets,
163 const NetLogWithSource& net_log) override; 164 const NetLogWithSource& net_log) override;
164 165
165 void CancelRequest(const std::string& group_name, 166 void CancelRequest(const std::string& group_name,
166 ClientSocketHandle* handle) override; 167 ClientSocketHandle* handle) override;
167 168
168 void ReleaseSocket(const std::string& group_name, 169 void ReleaseSocket(
169 std::unique_ptr<StreamSocket> socket, 170 const std::string& group_name,
170 int id) override; 171 std::unique_ptr<StreamSocket> socket,
172 int id,
173 const LoadTimingInfo::ConnectTiming& connect_timing) override;
171 174
172 void FlushWithError(int error) override; 175 void FlushWithError(int error) override;
173 176
174 void CloseIdleSockets() override; 177 void CloseIdleSockets() override;
175 178
176 int IdleSocketCount() const override; 179 int IdleSocketCount() const override;
177 180
178 int IdleSocketCountInGroup(const std::string& group_name) const override; 181 int IdleSocketCountInGroup(const std::string& group_name) const override;
179 182
180 LoadState GetLoadState(const std::string& group_name, 183 LoadState GetLoadState(const std::string& group_name,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 TransportClientSocketPool* const transport_pool_; 229 TransportClientSocketPool* const transport_pool_;
227 SSLClientSocketPool* const ssl_pool_; 230 SSLClientSocketPool* const ssl_pool_;
228 PoolBase base_; 231 PoolBase base_;
229 232
230 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); 233 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool);
231 }; 234 };
232 235
233 } // namespace net 236 } // namespace net
234 237
235 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ 238 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_proxy_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698