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 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 NOTREACHED(); | 584 NOTREACHED(); |
585 } | 585 } |
586 | 586 |
587 bool SpdyHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { | 587 bool SpdyHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { |
588 if (!spdy_session_) | 588 if (!spdy_session_) |
589 return false; | 589 return false; |
590 | 590 |
591 return spdy_session_->GetPeerAddress(endpoint) == OK; | 591 return spdy_session_->GetPeerAddress(endpoint) == OK; |
592 } | 592 } |
593 | 593 |
594 Error SpdyHttpStream::GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, | 594 Error SpdyHttpStream::GetTokenBindingSignature(crypto::ECPrivateKey* key, |
595 std::vector<uint8_t>* out) { | 595 TokenBindingType tb_type, |
596 return spdy_session_->GetSignedEKMForTokenBinding(key, out); | 596 std::vector<uint8_t>* out) { |
| 597 return spdy_session_->GetTokenBindingSignature(key, tb_type, out); |
597 } | 598 } |
598 | 599 |
599 void SpdyHttpStream::Drain(HttpNetworkSession* session) { | 600 void SpdyHttpStream::Drain(HttpNetworkSession* session) { |
600 NOTREACHED(); | 601 NOTREACHED(); |
601 Close(false); | 602 Close(false); |
602 delete this; | 603 delete this; |
603 } | 604 } |
604 | 605 |
605 void SpdyHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) { | 606 void SpdyHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) { |
606 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2; | 607 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2; |
607 return; | 608 return; |
608 } | 609 } |
609 | 610 |
610 void SpdyHttpStream::SetPriority(RequestPriority priority) { | 611 void SpdyHttpStream::SetPriority(RequestPriority priority) { |
611 // TODO(akalin): Plumb this through to |stream_request_| and | 612 // TODO(akalin): Plumb this through to |stream_request_| and |
612 // |stream_|. | 613 // |stream_|. |
613 } | 614 } |
614 | 615 |
615 } // namespace net | 616 } // namespace net |
OLD | NEW |