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

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

Issue 10690122: Change SpdySession::GetSSLInfo to get the SSLInfo from the underlying socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FIx curvercp Created 8 years, 5 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
« no previous file with comments | « remoting/jingle_glue/ssl_socket_adapter.h ('k') | remoting/protocol/fake_session.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) 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 #include "remoting/jingle_glue/ssl_socket_adapter.h" 5 #include "remoting/jingle_glue/ssl_socket_adapter.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "jingle/glue/utils.h" 10 #include "jingle/glue/utils.h"
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 int64 TransportSocket::NumBytesRead() const { 340 int64 TransportSocket::NumBytesRead() const {
341 NOTREACHED(); 341 NOTREACHED();
342 return -1; 342 return -1;
343 } 343 }
344 344
345 base::TimeDelta TransportSocket::GetConnectTimeMicros() const { 345 base::TimeDelta TransportSocket::GetConnectTimeMicros() const {
346 NOTREACHED(); 346 NOTREACHED();
347 return base::TimeDelta::FromMicroseconds(-1); 347 return base::TimeDelta::FromMicroseconds(-1);
348 } 348 }
349 349
350 bool TransportSocket::WasNpnNegotiated() const {
351 NOTREACHED();
352 return false;
353 }
354
350 net::NextProto TransportSocket::GetNegotiatedProtocol() const { 355 net::NextProto TransportSocket::GetNegotiatedProtocol() const {
351 NOTREACHED(); 356 NOTREACHED();
352 return net::kProtoUnknown; 357 return net::kProtoUnknown;
353 } 358 }
354 359
360 bool TransportSocket::GetSSLInfo(net::SSLInfo* ssl_info) {
361 NOTREACHED();
362 return false;
363 }
364
355 int TransportSocket::Read(net::IOBuffer* buf, int buf_len, 365 int TransportSocket::Read(net::IOBuffer* buf, int buf_len,
356 const net::CompletionCallback& callback) { 366 const net::CompletionCallback& callback) {
357 DCHECK(buf); 367 DCHECK(buf);
358 DCHECK(read_callback_.is_null()); 368 DCHECK(read_callback_.is_null());
359 DCHECK(!read_buffer_.get()); 369 DCHECK(!read_buffer_.get());
360 int result = socket_->Recv(buf->data(), buf_len); 370 int result = socket_->Recv(buf->data(), buf_len);
361 if (result < 0) { 371 if (result < 0) {
362 result = net::MapSystemError(socket_->GetError()); 372 result = net::MapSystemError(socket_->GetError());
363 if (result == net::ERR_IO_PENDING) { 373 if (result == net::ERR_IO_PENDING) {
364 read_callback_ = callback; 374 read_callback_ = callback;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 write_buffer_len_ = buffer_len; 456 write_buffer_len_ = buffer_len;
447 return; 457 return;
448 } 458 }
449 } 459 }
450 was_used_to_convey_data_ = true; 460 was_used_to_convey_data_ = true;
451 callback.Run(result); 461 callback.Run(result);
452 } 462 }
453 } 463 }
454 464
455 } // namespace remoting 465 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/jingle_glue/ssl_socket_adapter.h ('k') | remoting/protocol/fake_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698