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

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

Issue 6990036: Deciding best connection to schedule requests on based on cwnd and idle time (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TCP_CLIENT_SOCKET_LIBEVENT_H_ 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_
6 #define NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/threading/non_thread_safe.h" 12 #include "base/threading/non_thread_safe.h"
13 #include "base/time.h"
13 #include "net/base/address_list.h" 14 #include "net/base/address_list.h"
14 #include "net/base/completion_callback.h" 15 #include "net/base/completion_callback.h"
15 #include "net/base/net_log.h" 16 #include "net/base/net_log.h"
16 #include "net/socket/stream_socket.h" 17 #include "net/socket/stream_socket.h"
17 18
18 struct event; // From libevent 19 struct event; // From libevent
19 20
20 namespace net { 21 namespace net {
21 22
22 class BoundNetLog; 23 class BoundNetLog;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // Record of connectivity and transmissions, for use in speculative connection 187 // Record of connectivity and transmissions, for use in speculative connection
187 // histograms. 188 // histograms.
188 UseHistory use_history_; 189 UseHistory use_history_;
189 190
190 // Enables experimental TCP FastOpen option. 191 // Enables experimental TCP FastOpen option.
191 bool use_tcp_fastopen_; 192 bool use_tcp_fastopen_;
192 193
193 // True when TCP FastOpen is in use and we have done the connect. 194 // True when TCP FastOpen is in use and we have done the connect.
194 bool tcp_fastopen_connected_; 195 bool tcp_fastopen_connected_;
195 196
197 base::Time connect_start_time_;
198
196 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent); 199 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent);
197 }; 200 };
198 201
199 } // namespace net 202 } // namespace net
200 203
201 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ 204 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698