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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 return -1; | 359 return -1; |
360 } | 360 } |
361 | 361 |
362 base::TimeDelta ProxyResolvingClientSocket::GetConnectTimeMicros() const { | 362 base::TimeDelta ProxyResolvingClientSocket::GetConnectTimeMicros() const { |
363 if (transport_.get() && transport_->socket()) | 363 if (transport_.get() && transport_->socket()) |
364 return transport_->socket()->GetConnectTimeMicros(); | 364 return transport_->socket()->GetConnectTimeMicros(); |
365 NOTREACHED(); | 365 NOTREACHED(); |
366 return base::TimeDelta::FromMicroseconds(-1); | 366 return base::TimeDelta::FromMicroseconds(-1); |
367 } | 367 } |
368 | 368 |
| 369 net::NextProto ProxyResolvingClientSocket::GetNegotiatedProtocol() const { |
| 370 if (transport_.get() && transport_->socket()) |
| 371 return transport_->socket()->GetNegotiatedProtocol(); |
| 372 NOTREACHED(); |
| 373 return net::kProtoUnknown; |
| 374 } |
| 375 |
369 void ProxyResolvingClientSocket::CloseTransportSocket() { | 376 void ProxyResolvingClientSocket::CloseTransportSocket() { |
370 if (transport_.get() && transport_->socket()) | 377 if (transport_.get() && transport_->socket()) |
371 transport_->socket()->Disconnect(); | 378 transport_->socket()->Disconnect(); |
372 transport_.reset(); | 379 transport_.reset(); |
373 } | 380 } |
374 | 381 |
375 } // namespace notifier | 382 } // namespace notifier |
OLD | NEW |