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

Unified Diff: net/spdy/spdy_protocol.h

Issue 12259003: Clean up the last remaining bits of SpdySynReplyControlFrame. (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.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 a1a681589981183bd4062b6db412fd5b066e8d94..d3403af083ecf81e84be6757deee3de98285b6ad 100644
--- a/net/spdy/spdy_protocol.h
+++ b/net/spdy/spdy_protocol.h
@@ -491,11 +491,6 @@ struct SpdySynStreamControlFrameBlock : SpdyFrameBlock {
uint8 credential_slot_;
};
-// A SYN_REPLY Control Frame structure.
-struct SpdySynReplyControlFrameBlock : SpdyFrameBlock {
- SpdyStreamId stream_id_;
-};
-
// A RST_STREAM Control Frame structure.
struct SpdyRstStreamControlFrameBlock : SpdyFrameBlock {
SpdyStreamId stream_id_;
@@ -1054,49 +1049,6 @@ class SpdySynStreamControlFrame : public SpdyControlFrame {
DISALLOW_COPY_AND_ASSIGN(SpdySynStreamControlFrame);
};
-// A SYN_REPLY frame.
-class SpdySynReplyControlFrame : public SpdyControlFrame {
- public:
- SpdySynReplyControlFrame() : SpdyControlFrame(size()) {}
- SpdySynReplyControlFrame(char* data, bool owns_buffer)
- : SpdyControlFrame(data, owns_buffer) {}
-
- SpdyStreamId stream_id() const {
- return ntohl(block()->stream_id_) & kStreamIdMask;
- }
-
- int header_block_len() const {
- size_t header_block_len = length() - (size() - SpdyFrame::kHeaderSize);
- // SPDY 2 had 2 bytes of unused space preceeding the header block.
- if (version() < 3) {
- header_block_len -= 2;
- }
- return header_block_len;
- }
-
- const char* header_block() const {
- const char* header_block = reinterpret_cast<const char*>(block()) + size();
- // SPDY 2 had 2 bytes of unused space preceeding the header block.
- if (version() < 3) {
- header_block += 2;
- }
- return header_block;
- }
-
- // Returns the size of the SpdySynReplyControlFrameBlock structure.
- // Note: this is not the size of the SpdySynReplyControlFrame class.
- static size_t size() { return sizeof(SpdySynReplyControlFrameBlock); }
-
- private:
- const struct SpdySynReplyControlFrameBlock* block() const {
- return static_cast<SpdySynReplyControlFrameBlock*>(frame_);
- }
- struct SpdySynReplyControlFrameBlock* mutable_block() {
- return static_cast<SpdySynReplyControlFrameBlock*>(frame_);
- }
- DISALLOW_COPY_AND_ASSIGN(SpdySynReplyControlFrame);
-};
-
// A RST_STREAM frame.
class SpdyRstStreamControlFrame : public SpdyControlFrame {
public:
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | net/spdy/spdy_protocol_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698