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_stream.h" | 5 #include "net/spdy/spdy_stream.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 QueueNextDataFrame(); | 703 QueueNextDataFrame(); |
704 } | 704 } |
705 | 705 |
706 bool SpdyStream::GetSSLInfo(SSLInfo* ssl_info, | 706 bool SpdyStream::GetSSLInfo(SSLInfo* ssl_info, |
707 bool* was_npn_negotiated, | 707 bool* was_npn_negotiated, |
708 NextProto* protocol_negotiated) { | 708 NextProto* protocol_negotiated) { |
709 return session_->GetSSLInfo( | 709 return session_->GetSSLInfo( |
710 ssl_info, was_npn_negotiated, protocol_negotiated); | 710 ssl_info, was_npn_negotiated, protocol_negotiated); |
711 } | 711 } |
712 | 712 |
713 bool SpdyStream::GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) { | |
714 return session_->GetSSLCertRequestInfo(cert_request_info); | |
715 } | |
716 | |
717 void SpdyStream::PossiblyResumeIfSendStalled() { | 713 void SpdyStream::PossiblyResumeIfSendStalled() { |
718 if (IsLocallyClosed()) { | 714 if (IsLocallyClosed()) { |
719 return; | 715 return; |
720 } | 716 } |
721 if (send_stalled_by_flow_control_ && !session_->IsSendStalled() && | 717 if (send_stalled_by_flow_control_ && !session_->IsSendStalled() && |
722 send_window_size_ > 0) { | 718 send_window_size_ > 0) { |
723 net_log_.AddEvent(NetLog::TYPE_HTTP2_STREAM_FLOW_CONTROL_UNSTALLED, | 719 net_log_.AddEvent(NetLog::TYPE_HTTP2_STREAM_FLOW_CONTROL_UNSTALLED, |
724 NetLog::IntegerCallback("stream_id", stream_id_)); | 720 NetLog::IntegerCallback("stream_id", stream_id_)); |
725 send_stalled_by_flow_control_ = false; | 721 send_stalled_by_flow_control_ = false; |
726 QueueNextDataFrame(); | 722 QueueNextDataFrame(); |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, | 924 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, |
929 state); | 925 state); |
930 break; | 926 break; |
931 } | 927 } |
932 return description; | 928 return description; |
933 } | 929 } |
934 | 930 |
935 #undef STATE_CASE | 931 #undef STATE_CASE |
936 | 932 |
937 } // namespace net | 933 } // namespace net |
OLD | NEW |