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

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

Issue 10026024: Attempting to re-land a small portion of this change... Simply add links from (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix willchan's nit Created 8 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/transport_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_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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 virtual void RequestSockets(const std::string& group_name, 150 virtual void RequestSockets(const std::string& group_name,
151 const void* params, 151 const void* params,
152 int num_sockets, 152 int num_sockets,
153 const BoundNetLog& net_log) OVERRIDE; 153 const BoundNetLog& net_log) OVERRIDE;
154 virtual void CancelRequest(const std::string& group_name, 154 virtual void CancelRequest(const std::string& group_name,
155 ClientSocketHandle* handle) OVERRIDE; 155 ClientSocketHandle* handle) OVERRIDE;
156 virtual void ReleaseSocket(const std::string& group_name, 156 virtual void ReleaseSocket(const std::string& group_name,
157 StreamSocket* socket, 157 StreamSocket* socket,
158 int id) OVERRIDE; 158 int id) OVERRIDE;
159 virtual void Flush() OVERRIDE; 159 virtual void Flush() OVERRIDE;
160 virtual bool IsStalled() const OVERRIDE;
160 virtual void CloseIdleSockets() OVERRIDE; 161 virtual void CloseIdleSockets() OVERRIDE;
161 virtual int IdleSocketCount() const OVERRIDE; 162 virtual int IdleSocketCount() const OVERRIDE;
162 virtual int IdleSocketCountInGroup( 163 virtual int IdleSocketCountInGroup(
163 const std::string& group_name) const OVERRIDE; 164 const std::string& group_name) const OVERRIDE;
164 virtual LoadState GetLoadState( 165 virtual LoadState GetLoadState(
165 const std::string& group_name, 166 const std::string& group_name,
166 const ClientSocketHandle* handle) const OVERRIDE; 167 const ClientSocketHandle* handle) const OVERRIDE;
168 virtual void AddLayeredPool(LayeredPool* layered_pool) OVERRIDE;
169 virtual void RemoveLayeredPool(LayeredPool* layered_pool) OVERRIDE;
167 virtual base::DictionaryValue* GetInfoAsValue( 170 virtual base::DictionaryValue* GetInfoAsValue(
168 const std::string& name, 171 const std::string& name,
169 const std::string& type, 172 const std::string& type,
170 bool include_nested_pools) const OVERRIDE; 173 bool include_nested_pools) const OVERRIDE;
171 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE; 174 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE;
172 virtual ClientSocketPoolHistograms* histograms() const OVERRIDE; 175 virtual ClientSocketPoolHistograms* histograms() const OVERRIDE;
173 176
174 private: 177 private:
175 typedef ClientSocketPoolBase<TransportSocketParams> PoolBase; 178 typedef ClientSocketPoolBase<TransportSocketParams> PoolBase;
176 179
(...skipping 30 matching lines...) Expand all
207 210
208 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); 211 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool);
209 }; 212 };
210 213
211 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, 214 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool,
212 TransportSocketParams); 215 TransportSocketParams);
213 216
214 } // namespace net 217 } // namespace net
215 218
216 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 219 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/transport_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698