OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/quic/quic_spdy_stream.h" | 5 #include "net/quic/quic_spdy_stream.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "net/quic/quic_spdy_session.h" | 8 #include "net/quic/quic_spdy_session.h" |
9 #include "net/quic/quic_utils.h" | 9 #include "net/quic/quic_utils.h" |
10 #include "net/quic/quic_write_blocked_list.h" | 10 #include "net/quic/quic_write_blocked_list.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 if (FinishedReadingHeaders()) { | 110 if (FinishedReadingHeaders()) { |
111 sequencer()->SetUnblocked(); | 111 sequencer()->SetUnblocked(); |
112 } | 112 } |
113 } | 113 } |
114 | 114 |
115 void QuicSpdyStream::set_priority(QuicPriority priority) { | 115 void QuicSpdyStream::set_priority(QuicPriority priority) { |
116 DCHECK_EQ(0u, stream_bytes_written()); | 116 DCHECK_EQ(0u, stream_bytes_written()); |
117 priority_ = priority; | 117 priority_ = priority; |
118 } | 118 } |
119 | 119 |
120 QuicPriority QuicSpdyStream::EffectivePriority() const { | 120 QuicPriority QuicSpdyStream::Priority() const { |
121 return priority(); | 121 return priority(); |
122 } | 122 } |
123 | 123 |
124 void QuicSpdyStream::OnStreamHeaders(StringPiece headers_data) { | 124 void QuicSpdyStream::OnStreamHeaders(StringPiece headers_data) { |
125 headers_data.AppendToString(&decompressed_headers_); | 125 headers_data.AppendToString(&decompressed_headers_); |
126 } | 126 } |
127 | 127 |
128 void QuicSpdyStream::OnStreamHeadersPriority(QuicPriority priority) { | 128 void QuicSpdyStream::OnStreamHeadersPriority(QuicPriority priority) { |
129 DCHECK_EQ(Perspective::IS_SERVER, session()->connection()->perspective()); | 129 DCHECK_EQ(Perspective::IS_SERVER, session()->connection()->perspective()); |
130 set_priority(priority); | 130 set_priority(priority); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 visitor_ = nullptr; | 163 visitor_ = nullptr; |
164 visitor->OnClose(this); | 164 visitor->OnClose(this); |
165 } | 165 } |
166 } | 166 } |
167 | 167 |
168 bool QuicSpdyStream::FinishedReadingHeaders() const { | 168 bool QuicSpdyStream::FinishedReadingHeaders() const { |
169 return headers_decompressed_ && decompressed_headers_.empty(); | 169 return headers_decompressed_ && decompressed_headers_.empty(); |
170 } | 170 } |
171 | 171 |
172 } // namespace net | 172 } // namespace net |
OLD | NEW |