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

Side by Side Diff: remoting/jingle_glue/ssl_socket_adapter.cc

Issue 4039003: Add experimental option for TCP FastOpen.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « remoting/jingle_glue/ssl_socket_adapter.h ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "remoting/jingle_glue/ssl_socket_adapter.h" 5 #include "remoting/jingle_glue/ssl_socket_adapter.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "net/base/address_list.h" 9 #include "net/base/address_list.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 void TransportSocket::SetOmniboxSpeculation() { 240 void TransportSocket::SetOmniboxSpeculation() {
241 NOTREACHED(); 241 NOTREACHED();
242 } 242 }
243 243
244 bool TransportSocket::WasEverUsed() const { 244 bool TransportSocket::WasEverUsed() const {
245 // We don't use this in ClientSocketPools, so this should never be used. 245 // We don't use this in ClientSocketPools, so this should never be used.
246 NOTREACHED(); 246 NOTREACHED();
247 return was_used_to_convey_data_; 247 return was_used_to_convey_data_;
248 } 248 }
249 249
250 bool TransportSocket::UsingTCPFastOpen() const {
251 NOTREACHED();
252 return false;
253 }
254
250 int TransportSocket::Read(net::IOBuffer* buf, int buf_len, 255 int TransportSocket::Read(net::IOBuffer* buf, int buf_len,
251 net::CompletionCallback* callback) { 256 net::CompletionCallback* callback) {
252 DCHECK(buf); 257 DCHECK(buf);
253 DCHECK(!read_callback_); 258 DCHECK(!read_callback_);
254 DCHECK(!read_buffer_.get()); 259 DCHECK(!read_buffer_.get());
255 int result = socket_->Recv(buf->data(), buf_len); 260 int result = socket_->Recv(buf->data(), buf_len);
256 if (result < 0) { 261 if (result < 0) {
257 result = MapPosixToChromeError(socket_->GetError()); 262 result = MapPosixToChromeError(socket_->GetError());
258 if (result == net::ERR_IO_PENDING) { 263 if (result == net::ERR_IO_PENDING) {
259 read_callback_ = callback; 264 read_callback_ = callback;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 write_buffer_len_ = buffer_len; 346 write_buffer_len_ = buffer_len;
342 return; 347 return;
343 } 348 }
344 } 349 }
345 was_used_to_convey_data_ = true; 350 was_used_to_convey_data_ = true;
346 callback->RunWithParams(Tuple1<int>(result)); 351 callback->RunWithParams(Tuple1<int>(result));
347 } 352 }
348 } 353 }
349 354
350 } // namespace remoting 355 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/jingle_glue/ssl_socket_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698