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

Side by Side Diff: net/socket/websocket_transport_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "base/timer/timer.h" 18 #include "base/timer/timer.h"
19 #include "net/base/load_timing_info.h"
19 #include "net/base/net_export.h" 20 #include "net/base/net_export.h"
20 #include "net/log/net_log_with_source.h" 21 #include "net/log/net_log_with_source.h"
21 #include "net/socket/client_socket_pool.h" 22 #include "net/socket/client_socket_pool.h"
22 #include "net/socket/client_socket_pool_base.h" 23 #include "net/socket/client_socket_pool_base.h"
23 #include "net/socket/transport_client_socket_pool.h" 24 #include "net/socket/transport_client_socket_pool.h"
24 25
25 namespace base { 26 namespace base {
26 class DictionaryValue; 27 class DictionaryValue;
27 } 28 }
28 29
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 RespectLimits respect_limits, 159 RespectLimits respect_limits,
159 ClientSocketHandle* handle, 160 ClientSocketHandle* handle,
160 const CompletionCallback& callback, 161 const CompletionCallback& callback,
161 const NetLogWithSource& net_log) override; 162 const NetLogWithSource& net_log) override;
162 void RequestSockets(const std::string& group_name, 163 void RequestSockets(const std::string& group_name,
163 const void* params, 164 const void* params,
164 int num_sockets, 165 int num_sockets,
165 const NetLogWithSource& net_log) override; 166 const NetLogWithSource& net_log) override;
166 void CancelRequest(const std::string& group_name, 167 void CancelRequest(const std::string& group_name,
167 ClientSocketHandle* handle) override; 168 ClientSocketHandle* handle) override;
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 void FlushWithError(int error) override; 174 void FlushWithError(int error) override;
172 void CloseIdleSockets() override; 175 void CloseIdleSockets() override;
173 int IdleSocketCount() const override; 176 int IdleSocketCount() const override;
174 int IdleSocketCountInGroup(const std::string& group_name) const override; 177 int IdleSocketCountInGroup(const std::string& group_name) const override;
175 LoadState GetLoadState(const std::string& group_name, 178 LoadState GetLoadState(const std::string& group_name,
176 const ClientSocketHandle* handle) const override; 179 const ClientSocketHandle* handle) const override;
177 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( 180 std::unique_ptr<base::DictionaryValue> GetInfoAsValue(
178 const std::string& name, 181 const std::string& name,
179 const std::string& type, 182 const std::string& type,
180 bool include_nested_pools) const override; 183 bool include_nested_pools) const override;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 bool flushing_; 265 bool flushing_;
263 266
264 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_; 267 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_;
265 268
266 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool); 269 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool);
267 }; 270 };
268 271
269 } // namespace net 272 } // namespace net
270 273
271 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 274 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/transport_client_socket_pool.cc ('k') | net/socket/websocket_transport_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698