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

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

Issue 2337253004: Update Token Binding code to the latest drafts (Closed)
Patch Set: Add call to CBS_len() 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
« no previous file with comments | « net/spdy/spdy_http_stream.h ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_http_stream.h ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698