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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 SpdyStreamId promised_stream_id, | 130 SpdyStreamId promised_stream_id, |
131 bool end) OVERRIDE { | 131 bool end) OVERRIDE { |
132 LOG(DFATAL) << "PUSH_PROMISE frame received from a SPDY/3 framer"; | 132 LOG(DFATAL) << "PUSH_PROMISE frame received from a SPDY/3 framer"; |
133 CloseConnection("SPDY PUSH_PROMISE frame received."); | 133 CloseConnection("SPDY PUSH_PROMISE frame received."); |
134 } | 134 } |
135 | 135 |
136 virtual void OnContinuation(SpdyStreamId stream_id, bool end) OVERRIDE { | 136 virtual void OnContinuation(SpdyStreamId stream_id, bool end) OVERRIDE { |
137 CloseConnection("SPDY CONTINUATION frame received."); | 137 CloseConnection("SPDY CONTINUATION frame received."); |
138 } | 138 } |
139 | 139 |
| 140 virtual bool OnUnknownFrame(SpdyStreamId stream_id, int frame_type) OVERRIDE { |
| 141 CloseConnection("SPDY unknown frame received."); |
| 142 return false; |
| 143 } |
| 144 |
140 // SpdyFramerDebugVisitorInterface implementation | 145 // SpdyFramerDebugVisitorInterface implementation |
141 virtual void OnSendCompressedFrame(SpdyStreamId stream_id, | 146 virtual void OnSendCompressedFrame(SpdyStreamId stream_id, |
142 SpdyFrameType type, | 147 SpdyFrameType type, |
143 size_t payload_len, | 148 size_t payload_len, |
144 size_t frame_len) OVERRIDE {} | 149 size_t frame_len) OVERRIDE {} |
145 | 150 |
146 virtual void OnReceiveCompressedFrame(SpdyStreamId stream_id, | 151 virtual void OnReceiveCompressedFrame(SpdyStreamId stream_id, |
147 SpdyFrameType type, | 152 SpdyFrameType type, |
148 size_t frame_len) OVERRIDE { | 153 size_t frame_len) OVERRIDE { |
149 if (stream_->IsConnected()) { | 154 if (stream_->IsConnected()) { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 DCHECK_EQ(kInvalidStreamId, stream_id_); | 267 DCHECK_EQ(kInvalidStreamId, stream_id_); |
263 DCHECK_EQ(0u, frame_len_); | 268 DCHECK_EQ(0u, frame_len_); |
264 frame_len_ = frame_len; | 269 frame_len_ = frame_len; |
265 } | 270 } |
266 | 271 |
267 bool QuicHeadersStream::IsConnected() { | 272 bool QuicHeadersStream::IsConnected() { |
268 return session()->connection()->connected(); | 273 return session()->connection()->connected(); |
269 } | 274 } |
270 | 275 |
271 } // namespace net | 276 } // namespace net |
OLD | NEW |