Fix infinite recursion on hiding panel when created during fullscreen mode.
[chromium-blink-merge.git] / net / spdy / spdy_protocol.cc
blob6e2ddfa7e0422852ee282ab6e83856502b5cdec2
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/spdy/spdy_protocol.h"
7 namespace net {
9 SpdyFrameWithNameValueBlockIR::SpdyFrameWithNameValueBlockIR(
10 SpdyStreamId stream_id) : SpdyFrameWithFinIR(stream_id) {}
12 SpdyFrameWithNameValueBlockIR::~SpdyFrameWithNameValueBlockIR() {}
14 SpdyDataIR::SpdyDataIR(SpdyStreamId stream_id, const base::StringPiece& data)
15 : SpdyFrameWithFinIR(stream_id) {
16 SetDataDeep(data);
19 SpdyDataIR::SpdyDataIR(SpdyStreamId stream_id)
20 : SpdyFrameWithFinIR(stream_id) {}
22 SpdyDataIR::~SpdyDataIR() {}
24 void SpdyDataIR::Visit(SpdyFrameVisitor* visitor) const {
25 return visitor->VisitData(*this);
28 void SpdySynStreamIR::Visit(SpdyFrameVisitor* visitor) const {
29 return visitor->VisitSynStream(*this);
32 void SpdySynReplyIR::Visit(SpdyFrameVisitor* visitor) const {
33 return visitor->VisitSynReply(*this);
36 SpdyRstStreamIR::SpdyRstStreamIR(SpdyStreamId stream_id,
37 SpdyRstStreamStatus status,
38 base::StringPiece description)
39 : SpdyFrameWithStreamIdIR(stream_id),
40 description_(description) {
41 set_status(status);
44 SpdyRstStreamIR::~SpdyRstStreamIR() {}
46 void SpdyRstStreamIR::Visit(SpdyFrameVisitor* visitor) const {
47 return visitor->VisitRstStream(*this);
50 SpdySettingsIR::SpdySettingsIR()
51 : clear_settings_(false),
52 is_ack_(false) {}
54 SpdySettingsIR::~SpdySettingsIR() {}
56 void SpdySettingsIR::Visit(SpdyFrameVisitor* visitor) const {
57 return visitor->VisitSettings(*this);
60 void SpdyPingIR::Visit(SpdyFrameVisitor* visitor) const {
61 return visitor->VisitPing(*this);
64 SpdyGoAwayIR::SpdyGoAwayIR(SpdyStreamId last_good_stream_id,
65 SpdyGoAwayStatus status,
66 const base::StringPiece& description)
67 : description_(description) {
68 set_last_good_stream_id(last_good_stream_id);
69 set_status(status);
72 SpdyGoAwayIR::~SpdyGoAwayIR() {}
74 const base::StringPiece& SpdyGoAwayIR::description() const {
75 return description_;
78 void SpdyGoAwayIR::Visit(SpdyFrameVisitor* visitor) const {
79 return visitor->VisitGoAway(*this);
82 void SpdyHeadersIR::Visit(SpdyFrameVisitor* visitor) const {
83 return visitor->VisitHeaders(*this);
86 void SpdyWindowUpdateIR::Visit(SpdyFrameVisitor* visitor) const {
87 return visitor->VisitWindowUpdate(*this);
90 void SpdyBlockedIR::Visit(SpdyFrameVisitor* visitor) const {
91 return visitor->VisitBlocked(*this);
94 void SpdyPushPromiseIR::Visit(SpdyFrameVisitor* visitor) const {
95 return visitor->VisitPushPromise(*this);
98 void SpdyContinuationIR::Visit(SpdyFrameVisitor* visitor) const {
99 return visitor->VisitContinuation(*this);
102 } // namespace net