OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef NET_SPDY_BUFFERED_SPDY_FRAMER_H_ | 5 #ifndef NET_SPDY_BUFFERED_SPDY_FRAMER_H_ |
6 #define NET_SPDY_BUFFERED_SPDY_FRAMER_H_ | 6 #define NET_SPDY_BUFFERED_SPDY_FRAMER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 // buffer up from the spdy framer. | 293 // buffer up from the spdy framer. |
294 struct ControlFrameFields { | 294 struct ControlFrameFields { |
295 SpdyFrameType type; | 295 SpdyFrameType type; |
296 SpdyStreamId stream_id; | 296 SpdyStreamId stream_id; |
297 SpdyStreamId associated_stream_id; | 297 SpdyStreamId associated_stream_id; |
298 SpdyStreamId promised_stream_id; | 298 SpdyStreamId promised_stream_id; |
299 bool has_priority; | 299 bool has_priority; |
300 SpdyPriority priority; | 300 SpdyPriority priority; |
301 SpdyStreamId parent_stream_id; | 301 SpdyStreamId parent_stream_id; |
302 bool exclusive; | 302 bool exclusive; |
303 uint8 credential_slot; | |
304 bool fin; | 303 bool fin; |
305 bool unidirectional; | 304 bool unidirectional; |
306 }; | 305 }; |
307 scoped_ptr<ControlFrameFields> control_frame_fields_; | 306 scoped_ptr<ControlFrameFields> control_frame_fields_; |
308 | 307 |
309 // Collection of fields of a GOAWAY frame that this class needs to buffer. | 308 // Collection of fields of a GOAWAY frame that this class needs to buffer. |
310 struct GoAwayFields { | 309 struct GoAwayFields { |
311 SpdyStreamId last_accepted_stream_id; | 310 SpdyStreamId last_accepted_stream_id; |
312 SpdyGoAwayStatus status; | 311 SpdyGoAwayStatus status; |
313 std::string debug_data; | 312 std::string debug_data; |
314 }; | 313 }; |
315 scoped_ptr<GoAwayFields> goaway_fields_; | 314 scoped_ptr<GoAwayFields> goaway_fields_; |
316 | 315 |
317 DISALLOW_COPY_AND_ASSIGN(BufferedSpdyFramer); | 316 DISALLOW_COPY_AND_ASSIGN(BufferedSpdyFramer); |
318 }; | 317 }; |
319 | 318 |
320 } // namespace net | 319 } // namespace net |
321 | 320 |
322 #endif // NET_SPDY_BUFFERED_SPDY_FRAMER_H_ | 321 #endif // NET_SPDY_BUFFERED_SPDY_FRAMER_H_ |
OLD | NEW |