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

Side by Side Diff: webrtc/p2p/base/sessiondescription.h

Issue 1844803002: Modify PeerConnection for end-to-end QuicDataChannel usage (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 bool HasGroup(const std::string& name) const; 156 bool HasGroup(const std::string& name) const;
157 157
158 // Group mutators. 158 // Group mutators.
159 void AddGroup(const ContentGroup& group) { content_groups_.push_back(group); } 159 void AddGroup(const ContentGroup& group) { content_groups_.push_back(group); }
160 // Remove the first group with the same semantics specified by |name|. 160 // Remove the first group with the same semantics specified by |name|.
161 void RemoveGroupByName(const std::string& name); 161 void RemoveGroupByName(const std::string& name);
162 162
163 // Global attributes. 163 // Global attributes.
164 void set_msid_supported(bool supported) { msid_supported_ = supported; } 164 void set_msid_supported(bool supported) { msid_supported_ = supported; }
165 bool msid_supported() const { return msid_supported_; } 165 bool msid_supported() const { return msid_supported_; }
166 void set_quic(bool use_quic) { quic_ = use_quic; }
167 bool quic() const { return quic_; }
166 168
167 private: 169 private:
168 ContentInfos contents_; 170 ContentInfos contents_;
169 TransportInfos transport_infos_; 171 TransportInfos transport_infos_;
170 ContentGroups content_groups_; 172 ContentGroups content_groups_;
171 bool msid_supported_ = true; 173 bool msid_supported_ = true;
174 bool quic_ = false;
172 }; 175 };
173 176
174 // Indicates whether a ContentDescription was an offer or an answer, as 177 // Indicates whether a ContentDescription was an offer or an answer, as
175 // described in http://www.ietf.org/rfc/rfc3264.txt. CA_UPDATE 178 // described in http://www.ietf.org/rfc/rfc3264.txt. CA_UPDATE
176 // indicates a jingle update message which contains a subset of a full 179 // indicates a jingle update message which contains a subset of a full
177 // session description 180 // session description
178 enum ContentAction { 181 enum ContentAction {
179 CA_OFFER, CA_PRANSWER, CA_ANSWER, CA_UPDATE 182 CA_OFFER, CA_PRANSWER, CA_ANSWER, CA_UPDATE
180 }; 183 };
181 184
182 // Indicates whether a ContentDescription was sent by the local client 185 // Indicates whether a ContentDescription was sent by the local client
183 // or received from the remote client. 186 // or received from the remote client.
184 enum ContentSource { 187 enum ContentSource {
185 CS_LOCAL, CS_REMOTE 188 CS_LOCAL, CS_REMOTE
186 }; 189 };
187 190
188 } // namespace cricket 191 } // namespace cricket
189 192
190 #endif // WEBRTC_P2P_BASE_SESSIONDESCRIPTION_H_ 193 #endif // WEBRTC_P2P_BASE_SESSIONDESCRIPTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698