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/notifier/base/proxy_resolving_client_socket.h" | 5 #include "jingle/notifier/base/proxy_resolving_client_socket.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 return -1; | 361 return -1; |
362 } | 362 } |
363 | 363 |
364 base::TimeDelta ProxyResolvingClientSocket::GetConnectTimeMicros() const { | 364 base::TimeDelta ProxyResolvingClientSocket::GetConnectTimeMicros() const { |
365 if (transport_.get() && transport_->socket()) | 365 if (transport_.get() && transport_->socket()) |
366 return transport_->socket()->GetConnectTimeMicros(); | 366 return transport_->socket()->GetConnectTimeMicros(); |
367 NOTREACHED(); | 367 NOTREACHED(); |
368 return base::TimeDelta::FromMicroseconds(-1); | 368 return base::TimeDelta::FromMicroseconds(-1); |
369 } | 369 } |
370 | 370 |
| 371 bool ProxyResolvingClientSocket::WasNpnNegotiated() const { |
| 372 return false; |
| 373 } |
| 374 |
371 net::NextProto ProxyResolvingClientSocket::GetNegotiatedProtocol() const { | 375 net::NextProto ProxyResolvingClientSocket::GetNegotiatedProtocol() const { |
372 if (transport_.get() && transport_->socket()) | 376 if (transport_.get() && transport_->socket()) |
373 return transport_->socket()->GetNegotiatedProtocol(); | 377 return transport_->socket()->GetNegotiatedProtocol(); |
374 NOTREACHED(); | 378 NOTREACHED(); |
375 return net::kProtoUnknown; | 379 return net::kProtoUnknown; |
376 } | 380 } |
377 | 381 |
| 382 bool ProxyResolvingClientSocket::GetSSLInfo(net::SSLInfo* ssl_info) { |
| 383 return false; |
| 384 } |
| 385 |
378 void ProxyResolvingClientSocket::CloseTransportSocket() { | 386 void ProxyResolvingClientSocket::CloseTransportSocket() { |
379 if (transport_.get() && transport_->socket()) | 387 if (transport_.get() && transport_->socket()) |
380 transport_->socket()->Disconnect(); | 388 transport_->socket()->Disconnect(); |
381 transport_.reset(); | 389 transport_.reset(); |
382 } | 390 } |
383 | 391 |
384 } // namespace notifier | 392 } // namespace notifier |
OLD | NEW |