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 "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "net/quic/quic_session.h" | 8 #include "net/quic/quic_session.h" |
9 | 9 |
10 using base::StringPiece; | 10 using base::StringPiece; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 bool end) override { | 137 bool end) override { |
138 LOG(DFATAL) << "PUSH_PROMISE frame received from a SPDY/3 framer"; | 138 LOG(DFATAL) << "PUSH_PROMISE frame received from a SPDY/3 framer"; |
139 CloseConnection("SPDY PUSH_PROMISE frame received."); | 139 CloseConnection("SPDY PUSH_PROMISE frame received."); |
140 } | 140 } |
141 | 141 |
142 void OnContinuation(SpdyStreamId stream_id, bool end) override { | 142 void OnContinuation(SpdyStreamId stream_id, bool end) override { |
143 CloseConnection("SPDY CONTINUATION frame received."); | 143 CloseConnection("SPDY CONTINUATION frame received."); |
144 } | 144 } |
145 | 145 |
146 bool OnUnknownFrame(SpdyStreamId stream_id, int frame_type) override { | 146 bool OnUnknownFrame(SpdyStreamId stream_id, int frame_type) override { |
147 CloseConnection("SPDY unknown frame received."); | 147 CloseConnection("Unknown frame type received."); |
148 return false; | 148 return false; |
149 } | 149 } |
150 | 150 |
151 // SpdyFramerDebugVisitorInterface implementation | 151 // SpdyFramerDebugVisitorInterface implementation |
152 void OnSendCompressedFrame(SpdyStreamId stream_id, | 152 void OnSendCompressedFrame(SpdyStreamId stream_id, |
153 SpdyFrameType type, | 153 SpdyFrameType type, |
154 size_t payload_len, | 154 size_t payload_len, |
155 size_t frame_len) override {} | 155 size_t frame_len) override {} |
156 | 156 |
157 void OnReceiveCompressedFrame(SpdyStreamId stream_id, | 157 void OnReceiveCompressedFrame(SpdyStreamId stream_id, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 DCHECK_EQ(kInvalidStreamId, stream_id_); | 268 DCHECK_EQ(kInvalidStreamId, stream_id_); |
269 DCHECK_EQ(0u, frame_len_); | 269 DCHECK_EQ(0u, frame_len_); |
270 frame_len_ = frame_len; | 270 frame_len_ = frame_len; |
271 } | 271 } |
272 | 272 |
273 bool QuicHeadersStream::IsConnected() { | 273 bool QuicHeadersStream::IsConnected() { |
274 return session()->connection()->connected(); | 274 return session()->connection()->connected(); |
275 } | 275 } |
276 | 276 |
277 } // namespace net | 277 } // namespace net |
OLD | NEW |