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

Side by Side Diff: net/socket/tcp_client_socket.cc

Issue 451383002: Plumbing for TCP FastOpen for SSL sockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing linker error for Windows. Created 6 years, 3 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
« no previous file with comments | « net/socket/tcp_client_socket.h ('k') | net/socket/tcp_socket.h » ('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) 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
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
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
OLDNEW
« no previous file with comments | « net/socket/tcp_client_socket.h ('k') | net/socket/tcp_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698