| 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_SPDY_FRAMER_H_ | 5 #ifndef NET_SPDY_SPDY_FRAMER_H_ |
| 6 #define NET_SPDY_SPDY_FRAMER_H_ | 6 #define NET_SPDY_SPDY_FRAMER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 | 793 |
| 794 // If a HEADERS frame is followed by a CONTINUATION frame, the FIN/END_STREAM | 794 // If a HEADERS frame is followed by a CONTINUATION frame, the FIN/END_STREAM |
| 795 // flag is still carried in the HEADERS frame. If it's set, flip this so that | 795 // flag is still carried in the HEADERS frame. If it's set, flip this so that |
| 796 // we know to terminate the stream when the entire header block has been | 796 // we know to terminate the stream when the entire header block has been |
| 797 // processed. | 797 // processed. |
| 798 bool end_stream_when_done_; | 798 bool end_stream_when_done_; |
| 799 | 799 |
| 800 // If true, then ProcessInput returns after processing a full frame, | 800 // If true, then ProcessInput returns after processing a full frame, |
| 801 // rather than reading all available input. | 801 // rather than reading all available input. |
| 802 bool process_single_input_frame_ = false; | 802 bool process_single_input_frame_ = false; |
| 803 |
| 804 // Latched value of --FLAGS_spdy_on_stream_end. |
| 805 // If true, OnStreamEnd will be called instead of the sentinel call of |
| 806 // OnStreamFrameData(stream_id, nullptr, 0, true) |
| 807 bool spdy_on_stream_end_; |
| 803 }; | 808 }; |
| 804 | 809 |
| 805 } // namespace net | 810 } // namespace net |
| 806 | 811 |
| 807 #endif // NET_SPDY_SPDY_FRAMER_H_ | 812 #endif // NET_SPDY_SPDY_FRAMER_H_ |
| OLD | NEW |