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

Unified Diff: net/spdy/spdy_framer.cc

Issue 13598037: Add helper function for SPDY 4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/spdy_framer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer.cc
diff --git a/net/spdy/spdy_framer.cc b/net/spdy/spdy_framer.cc
index b8b57c19e3a90e34c4b78bf2e23b7dd8bb37a24e..a6423e157b1e2cd67bc24077fe9001bb0c9104e7 100644
--- a/net/spdy/spdy_framer.cc
+++ b/net/spdy/spdy_framer.cc
@@ -253,6 +253,13 @@ size_t SpdyFramer::GetCredentialMinimumSize() const {
return GetControlFrameHeaderSize() + 2;
}
+size_t SpdyFramer::GetDataFrameMaximumPayload() const {
+ if (protocol_version() < 4) {
+ return 0xffffff - GetDataFrameMinimumSize();
Ryan Hamilton 2013/04/08 16:11:45 I really think these values should be constants wh
+ }
+ return 0xffff - GetDataFrameMinimumSize();
+}
+
const char* SpdyFramer::StateToString(int state) {
switch (state) {
case SPDY_ERROR:
« no previous file with comments | « net/spdy/spdy_framer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698