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

Unified Diff: net/spdy/spdy_protocol.h

Issue 6085013: Start reordering the methods in headers in net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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
Index: net/spdy/spdy_protocol.h
diff --git a/net/spdy/spdy_protocol.h b/net/spdy/spdy_protocol.h
index 9834a11c1a207a3de14a7f38e0e028cf91c0779a..2389152ec4603bd92d00394ebd35a1380c61d035 100644
--- a/net/spdy/spdy_protocol.h
+++ b/net/spdy/spdy_protocol.h
@@ -302,9 +302,6 @@ struct SpdyWindowUpdateControlFrameBlock : SpdyFrameBlock {
// A structure for the 8 bit flags and 24 bit ID fields.
union SettingsFlagsAndId {
- uint8 flags_[4]; // 8 bits
- uint32 id_; // 24 bits
-
SettingsFlagsAndId(uint32 val) : id_(val) {}
uint8 flags() const { return flags_[0]; }
void set_flags(uint8 flags) { flags_[0] = flags; }
@@ -314,6 +311,9 @@ union SettingsFlagsAndId {
id = htonl(id & kSettingsIdMask);
id_ = flags() | id;
}
+
+ uint8 flags_[4]; // 8 bits
+ uint32 id_; // 24 bits
};
#pragma pack(pop)

Powered by Google App Engine
This is Rietveld 408576698