Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: net/spdy/spdy_framer.h

Issue 246933003: SPDY: Fix flaky padding edge case. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase only. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/spdy/spdy_framer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698