summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_protocol.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-14 20:07:38 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-14 20:07:38 +0000
commit7fea6c4c4f0a1ab8d68b96ae16d1d936febd3a28 (patch)
treebc19e4689538d545a421b160edd269b3ec4e70fc /net/spdy/spdy_protocol.h
parenteeca53726d1b3ad880bd8bac552a11f52ea3fc47 (diff)
downloadchromium_src-7fea6c4c4f0a1ab8d68b96ae16d1d936febd3a28.zip
chromium_src-7fea6c4c4f0a1ab8d68b96ae16d1d936febd3a28.tar.gz
chromium_src-7fea6c4c4f0a1ab8d68b96ae16d1d936febd3a28.tar.bz2
Remove SpdyRstStreamControlFrame struct. Useful for SPDY 4 development.
This lands server change 42102944. Review URL: https://codereview.chromium.org/12262004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182521 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_protocol.h')
-rw-r--r--net/spdy/spdy_protocol.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/net/spdy/spdy_protocol.h b/net/spdy/spdy_protocol.h
index dd7e753..78f75b9 100644
--- a/net/spdy/spdy_protocol.h
+++ b/net/spdy/spdy_protocol.h
@@ -491,12 +491,6 @@ struct SpdySynStreamControlFrameBlock : SpdyFrameBlock {
uint8 credential_slot_;
};
-// A RST_STREAM Control Frame structure.
-struct SpdyRstStreamControlFrameBlock : SpdyFrameBlock {
- SpdyStreamId stream_id_;
- uint32 status_;
-};
-
// A SETTINGS Control Frame structure.
struct SpdySettingsControlFrameBlock : SpdyFrameBlock {
uint32 num_entries_;
@@ -1038,43 +1032,6 @@ class SpdySynStreamControlFrame : public SpdyControlFrame {
DISALLOW_COPY_AND_ASSIGN(SpdySynStreamControlFrame);
};
-// A RST_STREAM frame.
-class SpdyRstStreamControlFrame : public SpdyControlFrame {
- public:
- SpdyRstStreamControlFrame() : SpdyControlFrame(size()) {}
- SpdyRstStreamControlFrame(char* data, bool owns_buffer)
- : SpdyControlFrame(data, owns_buffer) {}
-
- SpdyStreamId stream_id() const {
- return ntohl(block()->stream_id_) & kStreamIdMask;
- }
-
- SpdyRstStreamStatus status() const {
- SpdyRstStreamStatus status =
- static_cast<SpdyRstStreamStatus>(ntohl(block()->status_));
- if (status < RST_STREAM_INVALID || status >= RST_STREAM_NUM_STATUS_CODES) {
- status = RST_STREAM_INVALID;
- }
- return status;
- }
- void set_status(SpdyRstStreamStatus status) {
- mutable_block()->status_ = htonl(static_cast<uint32>(status));
- }
-
- // Returns the size of the SpdyRstStreamControlFrameBlock structure.
- // Note: this is not the size of the SpdyRstStreamControlFrame class.
- static size_t size() { return sizeof(SpdyRstStreamControlFrameBlock); }
-
- private:
- const struct SpdyRstStreamControlFrameBlock* block() const {
- return static_cast<SpdyRstStreamControlFrameBlock*>(frame_);
- }
- struct SpdyRstStreamControlFrameBlock* mutable_block() {
- return static_cast<SpdyRstStreamControlFrameBlock*>(frame_);
- }
- DISALLOW_COPY_AND_ASSIGN(SpdyRstStreamControlFrame);
-};
-
class SpdySettingsControlFrame : public SpdyControlFrame {
public:
SpdySettingsControlFrame() : SpdyControlFrame(size()) {}