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 "net/spdy/spdy_http_stream.h" | 5 #include "net/spdy/spdy_http_stream.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 NOTREACHED(); | 541 NOTREACHED(); |
542 } | 542 } |
543 | 543 |
544 bool SpdyHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { | 544 bool SpdyHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { |
545 if (!spdy_session_) | 545 if (!spdy_session_) |
546 return false; | 546 return false; |
547 | 547 |
548 return spdy_session_->GetPeerAddress(endpoint) == OK; | 548 return spdy_session_->GetPeerAddress(endpoint) == OK; |
549 } | 549 } |
550 | 550 |
| 551 int SpdyHttpStream::GetProvidedTokenBindingWithKey( |
| 552 const scoped_ptr<crypto::ECPrivateKey>& key, |
| 553 std::string* header_out) { |
| 554 return spdy_session_->GetProvidedTokenBindingWithKey(key, header_out); |
| 555 } |
| 556 |
551 void SpdyHttpStream::Drain(HttpNetworkSession* session) { | 557 void SpdyHttpStream::Drain(HttpNetworkSession* session) { |
552 NOTREACHED(); | 558 NOTREACHED(); |
553 Close(false); | 559 Close(false); |
554 delete this; | 560 delete this; |
555 } | 561 } |
556 | 562 |
557 void SpdyHttpStream::SetPriority(RequestPriority priority) { | 563 void SpdyHttpStream::SetPriority(RequestPriority priority) { |
558 // TODO(akalin): Plumb this through to |stream_request_| and | 564 // TODO(akalin): Plumb this through to |stream_request_| and |
559 // |stream_|. | 565 // |stream_|. |
560 } | 566 } |
561 | 567 |
562 } // namespace net | 568 } // namespace net |
OLD | NEW |