Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: net/spdy/spdy_http_stream.cc

Issue 2337253004: Update Token Binding code to the latest drafts (Closed)
Patch Set: Fix compilation error in unit_tests Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 NOTREACHED(); 592 NOTREACHED();
593 } 593 }
594 594
595 bool SpdyHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { 595 bool SpdyHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) {
596 if (!spdy_session_) 596 if (!spdy_session_)
597 return false; 597 return false;
598 598
599 return spdy_session_->GetPeerAddress(endpoint) == OK; 599 return spdy_session_->GetPeerAddress(endpoint) == OK;
600 } 600 }
601 601
602 Error SpdyHttpStream::GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, 602 Error SpdyHttpStream::GetTokenBindingSignature(crypto::ECPrivateKey* key,
603 std::vector<uint8_t>* out) { 603 TokenBindingType tb_type,
604 return spdy_session_->GetSignedEKMForTokenBinding(key, out); 604 std::vector<uint8_t>* out) {
605 return spdy_session_->GetTokenBindingSignature(key, tb_type, out);
605 } 606 }
606 607
607 void SpdyHttpStream::Drain(HttpNetworkSession* session) { 608 void SpdyHttpStream::Drain(HttpNetworkSession* session) {
608 NOTREACHED(); 609 NOTREACHED();
609 Close(false); 610 Close(false);
610 delete this; 611 delete this;
611 } 612 }
612 613
613 void SpdyHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) { 614 void SpdyHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) {
614 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2; 615 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP2;
615 return; 616 return;
616 } 617 }
617 618
618 void SpdyHttpStream::SetPriority(RequestPriority priority) { 619 void SpdyHttpStream::SetPriority(RequestPriority priority) {
619 // TODO(akalin): Plumb this through to |stream_request_| and 620 // TODO(akalin): Plumb this through to |stream_request_| and
620 // |stream_|. 621 // |stream_|.
621 } 622 }
622 623
623 } // namespace net 624 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698