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

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

Issue 1139953003: Remove explicit keyword from multi-arg SpdyPriorityIR constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | 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 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 DISALLOW_COPY_AND_ASSIGN(SpdyAltSvcIR); 992 DISALLOW_COPY_AND_ASSIGN(SpdyAltSvcIR);
993 }; 993 };
994 994
995 class NET_EXPORT_PRIVATE SpdyPriorityIR : public SpdyFrameWithStreamIdIR { 995 class NET_EXPORT_PRIVATE SpdyPriorityIR : public SpdyFrameWithStreamIdIR {
996 public: 996 public:
997 explicit SpdyPriorityIR(SpdyStreamId stream_id) 997 explicit SpdyPriorityIR(SpdyStreamId stream_id)
998 : SpdyFrameWithStreamIdIR(stream_id), 998 : SpdyFrameWithStreamIdIR(stream_id),
999 parent_stream_id_(0), 999 parent_stream_id_(0),
1000 weight_(1), 1000 weight_(1),
1001 exclusive_(false) {} 1001 exclusive_(false) {}
1002 explicit SpdyPriorityIR(SpdyStreamId stream_id, 1002 SpdyPriorityIR(SpdyStreamId stream_id,
1003 SpdyStreamId parent_stream_id, 1003 SpdyStreamId parent_stream_id,
1004 uint8 weight, 1004 uint8 weight,
1005 bool exclusive) 1005 bool exclusive)
1006 : SpdyFrameWithStreamIdIR(stream_id), 1006 : SpdyFrameWithStreamIdIR(stream_id),
1007 parent_stream_id_(parent_stream_id), 1007 parent_stream_id_(parent_stream_id),
1008 weight_(weight), 1008 weight_(weight),
1009 exclusive_(exclusive) {} 1009 exclusive_(exclusive) {}
1010 SpdyStreamId parent_stream_id() const { return parent_stream_id_; } 1010 SpdyStreamId parent_stream_id() const { return parent_stream_id_; }
1011 void set_parent_stream_id(SpdyStreamId id) { parent_stream_id_ = id; } 1011 void set_parent_stream_id(SpdyStreamId id) { parent_stream_id_ = id; }
1012 uint8 weight() const { return weight_; } 1012 uint8 weight() const { return weight_; }
1013 void set_weight(uint8 weight) { weight_ = weight; } 1013 void set_weight(uint8 weight) { weight_ = weight; }
1014 bool exclusive() const { return exclusive_; } 1014 bool exclusive() const { return exclusive_; }
1015 void set_exclusive(bool exclusive) { exclusive_ = exclusive; } 1015 void set_exclusive(bool exclusive) { exclusive_ = exclusive; }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 SpdyFrameVisitor() {} 1091 SpdyFrameVisitor() {}
1092 virtual ~SpdyFrameVisitor() {} 1092 virtual ~SpdyFrameVisitor() {}
1093 1093
1094 private: 1094 private:
1095 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor); 1095 DISALLOW_COPY_AND_ASSIGN(SpdyFrameVisitor);
1096 }; 1096 };
1097 1097
1098 } // namespace net 1098 } // namespace net
1099 1099
1100 #endif // NET_SPDY_SPDY_PROTOCOL_H_ 1100 #endif // NET_SPDY_SPDY_PROTOCOL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698