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

Side by Side Diff: net/spdy/spdy_protocol.h

Issue 992613005: Revert of Test dead code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « net/spdy/spdy_priority_tree_test.cc ('k') | net/spdy/spdy_protocol.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains some protocol structures for use with SPDY 2 and 3 5 // This file contains some protocol structures for use with SPDY 2 and 3
6 // The SPDY 2 spec can be found at: 6 // The SPDY 2 spec can be found at:
7 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft2 7 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft2
8 // The SPDY 3 spec can be found at: 8 // The SPDY 3 spec can be found at:
9 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3 9 // http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3
10 10
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 uint32 max_age_; 995 uint32 max_age_;
996 uint16 port_; 996 uint16 port_;
997 SpdyProtocolId protocol_id_; 997 SpdyProtocolId protocol_id_;
998 std::string host_; 998 std::string host_;
999 std::string origin_; 999 std::string origin_;
1000 DISALLOW_COPY_AND_ASSIGN(SpdyAltSvcIR); 1000 DISALLOW_COPY_AND_ASSIGN(SpdyAltSvcIR);
1001 }; 1001 };
1002 1002
1003 class NET_EXPORT_PRIVATE SpdyPriorityIR : public SpdyFrameWithStreamIdIR { 1003 class NET_EXPORT_PRIVATE SpdyPriorityIR : public SpdyFrameWithStreamIdIR {
1004 public: 1004 public:
1005 explicit SpdyPriorityIR(SpdyStreamId stream_id) 1005 explicit SpdyPriorityIR(SpdyStreamId stream_id);
1006 : SpdyFrameWithStreamIdIR(stream_id),
1007 parent_stream_id_(0),
1008 weight_(1),
1009 exclusive_(false) {}
1010 explicit SpdyPriorityIR(SpdyStreamId stream_id, 1006 explicit SpdyPriorityIR(SpdyStreamId stream_id,
1011 SpdyStreamId parent_stream_id, 1007 SpdyStreamId parent_stream_id,
1012 uint8 weight, 1008 uint8 weight,
1013 bool exclusive) 1009 bool exclusive);
1014 : SpdyFrameWithStreamIdIR(stream_id),
1015 parent_stream_id_(parent_stream_id),
1016 weight_(weight),
1017 exclusive_(exclusive) {}
1018 SpdyStreamId parent_stream_id() const { return parent_stream_id_; } 1010 SpdyStreamId parent_stream_id() const { return parent_stream_id_; }
1019 void set_parent_stream_id(SpdyStreamId id) { parent_stream_id_ = id; } 1011 void set_parent_stream_id(SpdyStreamId id) { parent_stream_id_ = id; }
1020 uint8 weight() const { return weight_; } 1012 uint8 weight() const { return weight_; }
1021 void set_weight(uint8 weight) { weight_ = weight; } 1013 void set_weight(uint8 weight) { weight_ = weight; }
1022 bool exclusive() const { return exclusive_; } 1014 bool exclusive() const { return exclusive_; }
1023 void set_exclusive(bool exclusive) { exclusive_ = exclusive; } 1015 void set_exclusive(bool exclusive) { exclusive_ = exclusive; }
1024 1016
1025 void Visit(SpdyFrameVisitor* visitor) const override; 1017 void Visit(SpdyFrameVisitor* visitor) const override;
1026 1018
1027 private: 1019 private:
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 SpdyFrameVisitor() {} 1091 SpdyFrameVisitor() {}
1100 virtual ~SpdyFrameVisitor() {} 1092 virtual ~SpdyFrameVisitor() {}
1101 1093
1102 private: 1094 private:
1103 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); 1095 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor);
1104 }; 1096 };
1105 1097
1106 } // namespace net 1098 } // namespace net
1107 1099
1108 #endif // NET_SPDY_SPDY_PROTOCOL_H_ 1100 #endif // NET_SPDY_SPDY_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_priority_tree_test.cc ('k') | net/spdy/spdy_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698