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

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

Issue 11464028: Introduce ERR_NETWORK_CHANGED and allow URLFetcher to automatically retry on that error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed nits Created 8 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 | 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 const BoundNetLog& net_log) OVERRIDE; 157 const BoundNetLog& net_log) OVERRIDE;
158 virtual void RequestSockets(const std::string& group_name, 158 virtual void RequestSockets(const std::string& group_name,
159 const void* params, 159 const void* params,
160 int num_sockets, 160 int num_sockets,
161 const BoundNetLog& net_log) OVERRIDE; 161 const BoundNetLog& net_log) OVERRIDE;
162 virtual void CancelRequest(const std::string& group_name, 162 virtual void CancelRequest(const std::string& group_name,
163 ClientSocketHandle* handle) OVERRIDE; 163 ClientSocketHandle* handle) OVERRIDE;
164 virtual void ReleaseSocket(const std::string& group_name, 164 virtual void ReleaseSocket(const std::string& group_name,
165 StreamSocket* socket, 165 StreamSocket* socket,
166 int id) OVERRIDE; 166 int id) OVERRIDE;
167 virtual void Flush() OVERRIDE; 167 virtual void FlushWithError(int error) OVERRIDE;
168 virtual bool IsStalled() const OVERRIDE; 168 virtual bool IsStalled() const OVERRIDE;
169 virtual void CloseIdleSockets() OVERRIDE; 169 virtual void CloseIdleSockets() OVERRIDE;
170 virtual int IdleSocketCount() const OVERRIDE; 170 virtual int IdleSocketCount() const OVERRIDE;
171 virtual int IdleSocketCountInGroup( 171 virtual int IdleSocketCountInGroup(
172 const std::string& group_name) const OVERRIDE; 172 const std::string& group_name) const OVERRIDE;
173 virtual LoadState GetLoadState( 173 virtual LoadState GetLoadState(
174 const std::string& group_name, 174 const std::string& group_name,
175 const ClientSocketHandle* handle) const OVERRIDE; 175 const ClientSocketHandle* handle) const OVERRIDE;
176 virtual void AddLayeredPool(LayeredPool* layered_pool) OVERRIDE; 176 virtual void AddLayeredPool(LayeredPool* layered_pool) OVERRIDE;
177 virtual void RemoveLayeredPool(LayeredPool* layered_pool) OVERRIDE; 177 virtual void RemoveLayeredPool(LayeredPool* layered_pool) OVERRIDE;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); 219 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool);
220 }; 220 };
221 221
222 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, 222 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool,
223 TransportSocketParams); 223 TransportSocketParams);
224 224
225 } // namespace net 225 } // namespace net
226 226
227 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 227 #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