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

Unified Diff: net/spdy/spdy_framer.h

Issue 202383002: Add settings IDs to SpdyConstants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test fix. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/buffered_spdy_framer_unittest.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer.h
diff --git a/net/spdy/spdy_framer.h b/net/spdy/spdy_framer.h
index 01de6600b2dc697f7d5576a3d5b4fa16290c4074..3188825ad0e224f8feca0da29c34e4fc240cdfc7 100644
--- a/net/spdy/spdy_framer.h
+++ b/net/spdy/spdy_framer.h
@@ -85,7 +85,7 @@ struct NET_EXPORT_PRIVATE SpdySettingsScratch {
void Reset() {
setting_buf_len = 0;
- last_setting_id = 0;
+ last_setting_id = -1;
}
// Buffer contains up to one complete key/value pair.
@@ -96,8 +96,8 @@ struct NET_EXPORT_PRIVATE SpdySettingsScratch {
// The ID of the last setting that was processed in the current SETTINGS
// frame. Used for detecting out-of-order or duplicate keys within a settings
- // frame. Set to 0 before first key/value pair is processed.
- uint32 last_setting_id;
+ // frame. Set to -1 before first key/value pair is processed.
+ int last_setting_id;
};
// SpdyFramerVisitorInterface is a set of callbacks for the SpdyFramer.
« no previous file with comments | « net/spdy/buffered_spdy_framer_unittest.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698