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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 void CopyConnectionAttemptsFromSockets(); 200 void CopyConnectionAttemptsFromSockets();
201 201
202 TransportConnectJobHelper helper_; 202 TransportConnectJobHelper helper_;
203 203
204 scoped_ptr<StreamSocket> transport_socket_; 204 scoped_ptr<StreamSocket> transport_socket_;
205 205
206 scoped_ptr<StreamSocket> fallback_transport_socket_; 206 scoped_ptr<StreamSocket> fallback_transport_socket_;
207 scoped_ptr<AddressList> fallback_addresses_; 207 scoped_ptr<AddressList> fallback_addresses_;
208 base::TimeTicks fallback_connect_start_time_; 208 base::TimeTicks fallback_connect_start_time_;
209 base::OneShotTimer<TransportConnectJob> fallback_timer_; 209 base::OneShotTimer fallback_timer_;
210 210
211 // Track the interval between this connect and previous connect. 211 // Track the interval between this connect and previous connect.
212 ConnectInterval interval_between_connects_; 212 ConnectInterval interval_between_connects_;
213 213
214 int resolve_result_; 214 int resolve_result_;
215 215
216 // Used in the failure case to save connection attempts made on the main and 216 // Used in the failure case to save connection attempts made on the main and
217 // fallback sockets and pass them on in |GetAdditionalErrorState|. (In the 217 // fallback sockets and pass them on in |GetAdditionalErrorState|. (In the
218 // success case, connection attempts are passed through the returned socket; 218 // success case, connection attempts are passed through the returned socket;
219 // attempts are copied from the other socket, if one exists, into it before 219 // attempts are copied from the other socket, if one exists, into it before
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 break; 364 break;
365 } 365 }
366 } while (rv != ERR_IO_PENDING && next_state_ != STATE_NONE); 366 } while (rv != ERR_IO_PENDING && next_state_ != STATE_NONE);
367 367
368 return rv; 368 return rv;
369 } 369 }
370 370
371 } // namespace net 371 } // namespace net
372 372
373 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 373 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/client_socket_pool_base.h ('k') | net/socket/websocket_transport_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698