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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 | 510 |
511 void SpdyHttpStream::GetSSLInfo(SSLInfo* ssl_info) { | 511 void SpdyHttpStream::GetSSLInfo(SSLInfo* ssl_info) { |
512 DCHECK(stream_.get()); | 512 DCHECK(stream_.get()); |
513 bool using_npn; | 513 bool using_npn; |
514 NextProto protocol_negotiated = kProtoUnknown; | 514 NextProto protocol_negotiated = kProtoUnknown; |
515 stream_->GetSSLInfo(ssl_info, &using_npn, &protocol_negotiated); | 515 stream_->GetSSLInfo(ssl_info, &using_npn, &protocol_negotiated); |
516 } | 516 } |
517 | 517 |
518 void SpdyHttpStream::GetSSLCertRequestInfo( | 518 void SpdyHttpStream::GetSSLCertRequestInfo( |
519 SSLCertRequestInfo* cert_request_info) { | 519 SSLCertRequestInfo* cert_request_info) { |
520 DCHECK(stream_.get()); | 520 // A SPDY stream cannot request client certificates. Client authentication may |
521 stream_->GetSSLCertRequestInfo(cert_request_info); | 521 // only occur during the initial SSL handshake. |
| 522 NOTREACHED(); |
522 } | 523 } |
523 | 524 |
524 bool SpdyHttpStream::IsSpdyHttpStream() const { | 525 bool SpdyHttpStream::IsSpdyHttpStream() const { |
525 return true; | 526 return true; |
526 } | 527 } |
527 | 528 |
528 void SpdyHttpStream::Drain(HttpNetworkSession* session) { | 529 void SpdyHttpStream::Drain(HttpNetworkSession* session) { |
529 Close(false); | 530 Close(false); |
530 delete this; | 531 delete this; |
531 } | 532 } |
532 | 533 |
533 void SpdyHttpStream::SetPriority(RequestPriority priority) { | 534 void SpdyHttpStream::SetPriority(RequestPriority priority) { |
534 // TODO(akalin): Plumb this through to |stream_request_| and | 535 // TODO(akalin): Plumb this through to |stream_request_| and |
535 // |stream_|. | 536 // |stream_|. |
536 } | 537 } |
537 | 538 |
538 } // namespace net | 539 } // namespace net |
OLD | NEW |