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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 } | 127 } |
128 | 128 |
129 virtual void OnPushPromise(SpdyStreamId stream_id, | 129 virtual void OnPushPromise(SpdyStreamId stream_id, |
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 recevied."); | 137 CloseConnection("SPDY CONTINUATION frame received."); |
138 } | 138 } |
139 | 139 |
140 // SpdyFramerDebugVisitorInterface implementation | 140 // SpdyFramerDebugVisitorInterface implementation |
141 virtual void OnSendCompressedFrame(SpdyStreamId stream_id, | 141 virtual void OnSendCompressedFrame(SpdyStreamId stream_id, |
142 SpdyFrameType type, | 142 SpdyFrameType type, |
143 size_t payload_len, | 143 size_t payload_len, |
144 size_t frame_len) OVERRIDE {} | 144 size_t frame_len) OVERRIDE {} |
145 | 145 |
146 virtual void OnReceiveCompressedFrame(SpdyStreamId stream_id, | 146 virtual void OnReceiveCompressedFrame(SpdyStreamId stream_id, |
147 SpdyFrameType type, | 147 SpdyFrameType type, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 DCHECK_EQ(kInvalidStreamId, stream_id_); | 252 DCHECK_EQ(kInvalidStreamId, stream_id_); |
253 DCHECK_EQ(0u, frame_len_); | 253 DCHECK_EQ(0u, frame_len_); |
254 frame_len_ = frame_len; | 254 frame_len_ = frame_len; |
255 } | 255 } |
256 | 256 |
257 bool QuicHeadersStream::IsConnected() { | 257 bool QuicHeadersStream::IsConnected() { |
258 return session()->connection()->connected(); | 258 return session()->connection()->connected(); |
259 } | 259 } |
260 | 260 |
261 } // namespace net | 261 } // namespace net |
OLD | NEW |