| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "net/socket/tcp_client_socket.h" | 5 #include "net/socket/tcp_client_socket.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "net/base/io_buffer.h" | 9 #include "net/base/io_buffer.h" |
| 10 #include "net/base/ip_endpoint.h" | 10 #include "net/base/ip_endpoint.h" |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 } | 218 } |
| 219 | 219 |
| 220 bool TCPClientSocket::WasEverUsed() const { | 220 bool TCPClientSocket::WasEverUsed() const { |
| 221 return use_history_.was_used_to_convey_data(); | 221 return use_history_.was_used_to_convey_data(); |
| 222 } | 222 } |
| 223 | 223 |
| 224 bool TCPClientSocket::UsingTCPFastOpen() const { | 224 bool TCPClientSocket::UsingTCPFastOpen() const { |
| 225 return socket_->UsingTCPFastOpen(); | 225 return socket_->UsingTCPFastOpen(); |
| 226 } | 226 } |
| 227 | 227 |
| 228 void TCPClientSocket::EnableTCPFastOpenIfSupported() { |
| 229 socket_->EnableTCPFastOpenIfSupported(); |
| 230 } |
| 231 |
| 228 bool TCPClientSocket::WasNpnNegotiated() const { | 232 bool TCPClientSocket::WasNpnNegotiated() const { |
| 229 return false; | 233 return false; |
| 230 } | 234 } |
| 231 | 235 |
| 232 NextProto TCPClientSocket::GetNegotiatedProtocol() const { | 236 NextProto TCPClientSocket::GetNegotiatedProtocol() const { |
| 233 return kProtoUnknown; | 237 return kProtoUnknown; |
| 234 } | 238 } |
| 235 | 239 |
| 236 bool TCPClientSocket::GetSSLInfo(SSLInfo* ssl_info) { | 240 bool TCPClientSocket::GetSSLInfo(SSLInfo* ssl_info) { |
| 237 return false; | 241 return false; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 int result = socket_->Open(family); | 315 int result = socket_->Open(family); |
| 312 if (result != OK) | 316 if (result != OK) |
| 313 return result; | 317 return result; |
| 314 | 318 |
| 315 socket_->SetDefaultOptionsForClient(); | 319 socket_->SetDefaultOptionsForClient(); |
| 316 | 320 |
| 317 return OK; | 321 return OK; |
| 318 } | 322 } |
| 319 | 323 |
| 320 } // namespace net | 324 } // namespace net |
| OLD | NEW |