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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 size_t ProcessIgnoredControlFramePayload(/*const char* data,*/ size_t len); | 646 size_t ProcessIgnoredControlFramePayload(/*const char* data,*/ size_t len); |
647 | 647 |
648 // TODO(jgraettinger): To be removed with migration to | 648 // TODO(jgraettinger): To be removed with migration to |
649 // SpdyHeadersHandlerInterface. | 649 // SpdyHeadersHandlerInterface. |
650 // Serializes the last-processed header block of |hpack_decoder_| as | 650 // Serializes the last-processed header block of |hpack_decoder_| as |
651 // a SPDY3 format block, and delivers it to the visitor via reentrant | 651 // a SPDY3 format block, and delivers it to the visitor via reentrant |
652 // call to ProcessControlFrameHeaderBlock(). | 652 // call to ProcessControlFrameHeaderBlock(). |
653 void DeliverHpackBlockAsSpdy3Block(); | 653 void DeliverHpackBlockAsSpdy3Block(); |
654 | 654 |
655 // Helpers for above internal breakouts from ProcessInput. | 655 // Helpers for above internal breakouts from ProcessInput. |
656 void ProcessControlFrameHeader(uint16 control_frame_type_field); | 656 void ProcessControlFrameHeader(int control_frame_type_field); |
657 // Always passed exactly 1 setting's worth of data. | 657 // Always passed exactly 1 setting's worth of data. |
658 bool ProcessSetting(const char* data); | 658 bool ProcessSetting(const char* data); |
659 | 659 |
660 // Retrieve serialized length of SpdyHeaderBlock. If compression is enabled, a | 660 // Retrieve serialized length of SpdyHeaderBlock. If compression is enabled, a |
661 // maximum estimate is returned. | 661 // maximum estimate is returned. |
662 size_t GetSerializedLength(const SpdyHeaderBlock& headers); | 662 size_t GetSerializedLength(const SpdyHeaderBlock& headers); |
663 | 663 |
664 // Get (and lazily initialize) the ZLib state. | 664 // Get (and lazily initialize) the ZLib state. |
665 z_stream* GetHeaderCompressor(); | 665 z_stream* GetHeaderCompressor(); |
666 z_stream* GetHeaderDecompressor(); | 666 z_stream* GetHeaderDecompressor(); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 // If a HEADERS frame is followed by a CONTINUATION frame, the FIN/END_STREAM | 801 // If a HEADERS frame is followed by a CONTINUATION frame, the FIN/END_STREAM |
802 // flag is still carried in the HEADERS frame. If it's set, flip this so that | 802 // flag is still carried in the HEADERS frame. If it's set, flip this so that |
803 // we know to terminate the stream when the entire header block has been | 803 // we know to terminate the stream when the entire header block has been |
804 // processed. | 804 // processed. |
805 bool end_stream_when_done_; | 805 bool end_stream_when_done_; |
806 }; | 806 }; |
807 | 807 |
808 } // namespace net | 808 } // namespace net |
809 | 809 |
810 #endif // NET_SPDY_SPDY_FRAMER_H_ | 810 #endif // NET_SPDY_SPDY_FRAMER_H_ |
OLD | NEW |