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