| 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ControlFrameSizesAreValidated); | 591 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ControlFrameSizesAreValidated); |
| 592 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, HeaderCompression); | 592 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, HeaderCompression); |
| 593 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, DecompressUncompressedFrame); | 593 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, DecompressUncompressedFrame); |
| 594 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ExpandBuffer_HeapSmash); | 594 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ExpandBuffer_HeapSmash); |
| 595 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, HugeHeaderBlock); | 595 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, HugeHeaderBlock); |
| 596 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, UnclosedStreamDataCompressors); | 596 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, UnclosedStreamDataCompressors); |
| 597 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, | 597 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, |
| 598 UnclosedStreamDataCompressorsOneByteAtATime); | 598 UnclosedStreamDataCompressorsOneByteAtATime); |
| 599 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, | 599 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, |
| 600 UncompressLargerThanFrameBufferInitialSize); | 600 UncompressLargerThanFrameBufferInitialSize); |
| 601 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, GetNumberRequiredContinuationFrames); |
| 601 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, | 602 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, |
| 602 CreatePushPromiseThenContinuationUncompressed); | 603 CreatePushPromiseThenContinuationUncompressed); |
| 603 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ReadLargeSettingsFrame); | 604 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ReadLargeSettingsFrame); |
| 604 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, | 605 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, |
| 605 ReadLargeSettingsFrameInSmallChunks); | 606 ReadLargeSettingsFrameInSmallChunks); |
| 606 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ControlFrameAtMaxSizeLimit); | 607 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ControlFrameAtMaxSizeLimit); |
| 607 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ControlFrameTooLarge); | 608 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ControlFrameTooLarge); |
| 608 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, | 609 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, |
| 609 TooLargeHeadersFrameUsesContinuation); | 610 TooLargeHeadersFrameUsesContinuation); |
| 610 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, | 611 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 // If a HEADERS frame is followed by a CONTINUATION frame, the FIN/END_STREAM | 798 // 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 | 799 // 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 | 800 // we know to terminate the stream when the entire header block has been |
| 800 // processed. | 801 // processed. |
| 801 bool end_stream_when_done_; | 802 bool end_stream_when_done_; |
| 802 }; | 803 }; |
| 803 | 804 |
| 804 } // namespace net | 805 } // namespace net |
| 805 | 806 |
| 806 #endif // NET_SPDY_SPDY_FRAMER_H_ | 807 #endif // NET_SPDY_SPDY_FRAMER_H_ |
| OLD | NEW |