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 #include "jingle/glue/proxy_resolving_client_socket.h" | 5 #include "jingle/glue/proxy_resolving_client_socket.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 NOTREACHED(); | 393 NOTREACHED(); |
394 } | 394 } |
395 | 395 |
396 bool ProxyResolvingClientSocket::WasEverUsed() const { | 396 bool ProxyResolvingClientSocket::WasEverUsed() const { |
397 if (transport_.get() && transport_->socket()) | 397 if (transport_.get() && transport_->socket()) |
398 return transport_->socket()->WasEverUsed(); | 398 return transport_->socket()->WasEverUsed(); |
399 NOTREACHED(); | 399 NOTREACHED(); |
400 return false; | 400 return false; |
401 } | 401 } |
402 | 402 |
403 bool ProxyResolvingClientSocket::UsingTCPFastOpen() const { | |
404 if (transport_.get() && transport_->socket()) | |
405 return transport_->socket()->UsingTCPFastOpen(); | |
406 NOTREACHED(); | |
407 return false; | |
408 } | |
409 | |
410 bool ProxyResolvingClientSocket::WasNpnNegotiated() const { | 403 bool ProxyResolvingClientSocket::WasNpnNegotiated() const { |
411 return false; | 404 return false; |
412 } | 405 } |
413 | 406 |
414 net::NextProto ProxyResolvingClientSocket::GetNegotiatedProtocol() const { | 407 net::NextProto ProxyResolvingClientSocket::GetNegotiatedProtocol() const { |
415 if (transport_.get() && transport_->socket()) | 408 if (transport_.get() && transport_->socket()) |
416 return transport_->socket()->GetNegotiatedProtocol(); | 409 return transport_->socket()->GetNegotiatedProtocol(); |
417 NOTREACHED(); | 410 NOTREACHED(); |
418 return net::kProtoUnknown; | 411 return net::kProtoUnknown; |
419 } | 412 } |
(...skipping 12 matching lines...) Expand all Loading... |
432 return 0; | 425 return 0; |
433 } | 426 } |
434 | 427 |
435 void ProxyResolvingClientSocket::CloseTransportSocket() { | 428 void ProxyResolvingClientSocket::CloseTransportSocket() { |
436 if (transport_.get() && transport_->socket()) | 429 if (transport_.get() && transport_->socket()) |
437 transport_->socket()->Disconnect(); | 430 transport_->socket()->Disconnect(); |
438 transport_.reset(); | 431 transport_.reset(); |
439 } | 432 } |
440 | 433 |
441 } // namespace jingle_glue | 434 } // namespace jingle_glue |
OLD | NEW |