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

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

Issue 202033002: Update SPDY4 length field to exclude frame prefix length. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Related test update Created 6 years, 9 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 | « net/spdy/spdy_frame_builder.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 <string> 10 #include <string>
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 size_t GetBlockedSize() const; 472 size_t GetBlockedSize() const;
473 size_t GetPushPromiseMinimumSize() const; 473 size_t GetPushPromiseMinimumSize() const;
474 size_t GetContinuationMinimumSize() const; 474 size_t GetContinuationMinimumSize() const;
475 475
476 // Returns the minimum size a frame can be (data or control). 476 // Returns the minimum size a frame can be (data or control).
477 size_t GetFrameMinimumSize() const; 477 size_t GetFrameMinimumSize() const;
478 478
479 // Returns the maximum size a frame can be (data or control). 479 // Returns the maximum size a frame can be (data or control).
480 size_t GetFrameMaximumSize() const; 480 size_t GetFrameMaximumSize() const;
481 481
482 // Returns the maximum size that a control frame can be.
483 size_t GetControlFrameMaximumSize() const;
484
482 // Returns the maximum payload size of a DATA frame. 485 // Returns the maximum payload size of a DATA frame.
483 size_t GetDataFrameMaximumPayload() const; 486 size_t GetDataFrameMaximumPayload() const;
484 487
485 // For debugging. 488 // For debugging.
486 static const char* StateToString(int state); 489 static const char* StateToString(int state);
487 static const char* ErrorCodeToString(int error_code); 490 static const char* ErrorCodeToString(int error_code);
488 static const char* StatusCodeToString(int status_code); 491 static const char* StatusCodeToString(int status_code);
489 static const char* FrameTypeToString(SpdyFrameType type); 492 static const char* FrameTypeToString(SpdyFrameType type);
490 493
491 SpdyMajorVersion protocol_version() const { return spdy_version_; } 494 SpdyMajorVersion protocol_version() const { return spdy_version_; }
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 // If a HEADERS frame is followed by a CONTINUATION frame, the FIN/END_STREAM 713 // If a HEADERS frame is followed by a CONTINUATION frame, the FIN/END_STREAM
711 // flag is still carried in the HEADERS frame. If it's set, flip this so that 714 // flag is still carried in the HEADERS frame. If it's set, flip this so that
712 // we know to terminate the stream when the entire header block has been 715 // we know to terminate the stream when the entire header block has been
713 // processed. 716 // processed.
714 bool end_stream_when_done_; 717 bool end_stream_when_done_;
715 }; 718 };
716 719
717 } // namespace net 720 } // namespace net
718 721
719 #endif // NET_SPDY_SPDY_FRAMER_H_ 722 #endif // NET_SPDY_SPDY_FRAMER_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_frame_builder.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698