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

Unified Diff: net/spdy/spdy_protocol.h

Issue 12258005: Remove SpdyWindowUpdateControlFrame. Useful in SPDY 4 development. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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_test.cc ('k') | net/spdy/spdy_protocol_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_protocol.h
diff --git a/net/spdy/spdy_protocol.h b/net/spdy/spdy_protocol.h
index d3403af083ecf81e84be6757deee3de98285b6ad..1cc19940282168b31327776cfe26237ae4fe383f 100644
--- a/net/spdy/spdy_protocol.h
+++ b/net/spdy/spdy_protocol.h
@@ -523,12 +523,6 @@ struct SpdyHeadersControlFrameBlock : SpdyFrameBlock {
SpdyStreamId stream_id_;
};
-// A WINDOW_UPDATE Control Frame structure
-struct SpdyWindowUpdateControlFrameBlock : SpdyFrameBlock {
- SpdyStreamId stream_id_;
- uint32 delta_window_size_;
-};
-
#pragma pack(pop)
class SpdyFrame;
@@ -1197,40 +1191,6 @@ class SpdyHeadersControlFrame : public SpdyControlFrame {
DISALLOW_COPY_AND_ASSIGN(SpdyHeadersControlFrame);
};
-// A WINDOW_UPDATE frame.
-class SpdyWindowUpdateControlFrame : public SpdyControlFrame {
- public:
- SpdyWindowUpdateControlFrame() : SpdyControlFrame(size()) {}
- SpdyWindowUpdateControlFrame(char* data, bool owns_buffer)
- : SpdyControlFrame(data, owns_buffer) {}
-
- SpdyStreamId stream_id() const {
- return ntohl(block()->stream_id_) & kStreamIdMask;
- }
-
- uint32 delta_window_size() const {
- return ntohl(block()->delta_window_size_);
- }
-
- void set_delta_window_size(uint32 delta_window_size) {
- mutable_block()->delta_window_size_ = htonl(delta_window_size);
- }
-
- // Returns the size of the SpdyWindowUpdateControlFrameBlock structure.
- // Note: this is not the size of the SpdyWindowUpdateControlFrame class.
- static size_t size() { return sizeof(SpdyWindowUpdateControlFrameBlock); }
-
- private:
- const struct SpdyWindowUpdateControlFrameBlock* block() const {
- return static_cast<SpdyWindowUpdateControlFrameBlock*>(frame_);
- }
- struct SpdyWindowUpdateControlFrameBlock* mutable_block() {
- return static_cast<SpdyWindowUpdateControlFrameBlock*>(frame_);
- }
-
- DISALLOW_COPY_AND_ASSIGN(SpdyWindowUpdateControlFrame);
-};
-
} // namespace net
#endif // NET_SPDY_SPDY_PROTOCOL_H_
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_protocol_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698