| OLD | NEW |
| 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_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 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 BoundNetLog net_log_; | 184 BoundNetLog net_log_; |
| 185 | 185 |
| 186 // This socket was previously disconnected and has not been re-connected. | 186 // This socket was previously disconnected and has not been re-connected. |
| 187 bool previously_disconnected_; | 187 bool previously_disconnected_; |
| 188 | 188 |
| 189 // Record of connectivity and transmissions, for use in speculative connection | 189 // Record of connectivity and transmissions, for use in speculative connection |
| 190 // histograms. | 190 // histograms. |
| 191 UseHistory use_history_; | 191 UseHistory use_history_; |
| 192 | 192 |
| 193 // Enables experimental TCP FastOpen option. | 193 // Enables experimental TCP FastOpen option. |
| 194 bool use_tcp_fastopen_; | 194 const bool use_tcp_fastopen_; |
| 195 | 195 |
| 196 // True when TCP FastOpen is in use and we have done the connect. | 196 // True when TCP FastOpen is in use and we have done the connect. |
| 197 bool tcp_fastopen_connected_; | 197 bool tcp_fastopen_connected_; |
| 198 | 198 |
| 199 base::TimeTicks connect_start_time_; | 199 base::TimeTicks connect_start_time_; |
| 200 base::TimeDelta connect_time_micros_; | 200 base::TimeDelta connect_time_micros_; |
| 201 int64 num_bytes_read_; | 201 int64 num_bytes_read_; |
| 202 | 202 |
| 203 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent); | 203 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent); |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 } // namespace net | 206 } // namespace net |
| 207 | 207 |
| 208 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ | 208 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ |
| OLD | NEW |