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_headers_stream.h" | 5 #include "net/quic/quic_headers_stream.h" |
6 | 6 |
7 #include "net/quic/quic_session.h" | 7 #include "net/quic/quic_session.h" |
8 | 8 |
9 using base::StringPiece; | 9 using base::StringPiece; |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 void OnPing(SpdyPingId unique_id, bool is_ack) override { | 109 void OnPing(SpdyPingId unique_id, bool is_ack) override { |
110 CloseConnection("SPDY PING frame received."); | 110 CloseConnection("SPDY PING frame received."); |
111 } | 111 } |
112 | 112 |
113 void OnGoAway(SpdyStreamId last_accepted_stream_id, | 113 void OnGoAway(SpdyStreamId last_accepted_stream_id, |
114 SpdyGoAwayStatus status) override { | 114 SpdyGoAwayStatus status) override { |
115 CloseConnection("SPDY GOAWAY frame received."); | 115 CloseConnection("SPDY GOAWAY frame received."); |
116 } | 116 } |
117 | 117 |
118 void OnHeaders(SpdyStreamId stream_id, bool fin, bool end) override { | 118 void OnHeaders(SpdyStreamId stream_id, |
| 119 bool has_priority, |
| 120 SpdyPriority priority, |
| 121 bool fin, |
| 122 bool end) override { |
119 CloseConnection("SPDY HEADERS frame received."); | 123 CloseConnection("SPDY HEADERS frame received."); |
120 } | 124 } |
121 | 125 |
122 void OnWindowUpdate(SpdyStreamId stream_id, | 126 void OnWindowUpdate(SpdyStreamId stream_id, |
123 uint32 delta_window_size) override { | 127 uint32 delta_window_size) override { |
124 CloseConnection("SPDY WINDOW_UPDATE frame received."); | 128 CloseConnection("SPDY WINDOW_UPDATE frame received."); |
125 } | 129 } |
126 | 130 |
127 void OnPushPromise(SpdyStreamId stream_id, | 131 void OnPushPromise(SpdyStreamId stream_id, |
128 SpdyStreamId promised_stream_id, | 132 SpdyStreamId promised_stream_id, |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 DCHECK_EQ(kInvalidStreamId, stream_id_); | 269 DCHECK_EQ(kInvalidStreamId, stream_id_); |
266 DCHECK_EQ(0u, frame_len_); | 270 DCHECK_EQ(0u, frame_len_); |
267 frame_len_ = frame_len; | 271 frame_len_ = frame_len; |
268 } | 272 } |
269 | 273 |
270 bool QuicHeadersStream::IsConnected() { | 274 bool QuicHeadersStream::IsConnected() { |
271 return session()->connection()->connected(); | 275 return session()->connection()->connected(); |
272 } | 276 } |
273 | 277 |
274 } // namespace net | 278 } // namespace net |
OLD | NEW |