| 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 <string> | 10 #include <string> |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 // whether data is treated as HPACK- vs SPDY3-encoded. | 558 // whether data is treated as HPACK- vs SPDY3-encoded. |
| 559 size_t ProcessControlFrameHeaderBlock(const char* data, | 559 size_t ProcessControlFrameHeaderBlock(const char* data, |
| 560 size_t len, | 560 size_t len, |
| 561 bool is_hpack_header_block); | 561 bool is_hpack_header_block); |
| 562 size_t ProcessFramePaddingLength(const char* data, size_t len); | 562 size_t ProcessFramePaddingLength(const char* data, size_t len); |
| 563 size_t ProcessFramePadding(const char* data, size_t len); | 563 size_t ProcessFramePadding(const char* data, size_t len); |
| 564 size_t ProcessDataFramePayload(const char* data, size_t len); | 564 size_t ProcessDataFramePayload(const char* data, size_t len); |
| 565 size_t ProcessGoAwayFramePayload(const char* data, size_t len); | 565 size_t ProcessGoAwayFramePayload(const char* data, size_t len); |
| 566 size_t ProcessRstStreamFramePayload(const char* data, size_t len); | 566 size_t ProcessRstStreamFramePayload(const char* data, size_t len); |
| 567 size_t ProcessSettingsFramePayload(const char* data, size_t len); | 567 size_t ProcessSettingsFramePayload(const char* data, size_t len); |
| 568 size_t ProcessIgnoredControlFramePayload(/*const char* data,*/ size_t len); |
| 568 | 569 |
| 569 // TODO(jgraettinger): To be removed with migration to | 570 // TODO(jgraettinger): To be removed with migration to |
| 570 // SpdyHeadersHandlerInterface. | 571 // SpdyHeadersHandlerInterface. |
| 571 // Serializes the last-processed header block of |hpack_decoder_| as | 572 // Serializes the last-processed header block of |hpack_decoder_| as |
| 572 // a SPDY3 format block, and delivers it to the visitor via reentrant | 573 // a SPDY3 format block, and delivers it to the visitor via reentrant |
| 573 // call to ProcessControlFrameHeaderBlock(). | 574 // call to ProcessControlFrameHeaderBlock(). |
| 574 void DeliverHpackBlockAsSpdy3Block(); | 575 void DeliverHpackBlockAsSpdy3Block(); |
| 575 | 576 |
| 576 // Helpers for above internal breakouts from ProcessInput. | 577 // Helpers for above internal breakouts from ProcessInput. |
| 577 void ProcessControlFrameHeader(uint16 control_frame_type_field); | 578 void ProcessControlFrameHeader(uint16 control_frame_type_field); |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 // If a HEADERS frame is followed by a CONTINUATION frame, the FIN/END_STREAM | 731 // If a HEADERS frame is followed by a CONTINUATION frame, the FIN/END_STREAM |
| 731 // flag is still carried in the HEADERS frame. If it's set, flip this so that | 732 // flag is still carried in the HEADERS frame. If it's set, flip this so that |
| 732 // we know to terminate the stream when the entire header block has been | 733 // we know to terminate the stream when the entire header block has been |
| 733 // processed. | 734 // processed. |
| 734 bool end_stream_when_done_; | 735 bool end_stream_when_done_; |
| 735 }; | 736 }; |
| 736 | 737 |
| 737 } // namespace net | 738 } // namespace net |
| 738 | 739 |
| 739 #endif // NET_SPDY_SPDY_FRAMER_H_ | 740 #endif // NET_SPDY_SPDY_FRAMER_H_ |
| OLD | NEW |