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

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

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « net/spdy/spdy_frame_reader_test.cc ('k') | 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 <memory> 10 #include <memory>
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « net/spdy/spdy_frame_reader_test.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698