OLD | NEW |
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 // Group accessors. | 153 // Group accessors. |
154 const ContentGroups& groups() const { return content_groups_; } | 154 const ContentGroups& groups() const { return content_groups_; } |
155 const ContentGroup* GetGroupByName(const std::string& name) const; | 155 const ContentGroup* GetGroupByName(const std::string& name) const; |
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. |
| 164 void set_msid_supported(bool supported) { msid_supported_ = supported; } |
| 165 bool msid_supported() const { return msid_supported_; } |
| 166 |
163 private: | 167 private: |
164 ContentInfos contents_; | 168 ContentInfos contents_; |
165 TransportInfos transport_infos_; | 169 TransportInfos transport_infos_; |
166 ContentGroups content_groups_; | 170 ContentGroups content_groups_; |
| 171 bool msid_supported_ = true; |
167 }; | 172 }; |
168 | 173 |
169 // Indicates whether a ContentDescription was an offer or an answer, as | 174 // Indicates whether a ContentDescription was an offer or an answer, as |
170 // described in http://www.ietf.org/rfc/rfc3264.txt. CA_UPDATE | 175 // described in http://www.ietf.org/rfc/rfc3264.txt. CA_UPDATE |
171 // indicates a jingle update message which contains a subset of a full | 176 // indicates a jingle update message which contains a subset of a full |
172 // session description | 177 // session description |
173 enum ContentAction { | 178 enum ContentAction { |
174 CA_OFFER, CA_PRANSWER, CA_ANSWER, CA_UPDATE | 179 CA_OFFER, CA_PRANSWER, CA_ANSWER, CA_UPDATE |
175 }; | 180 }; |
176 | 181 |
177 // Indicates whether a ContentDescription was sent by the local client | 182 // Indicates whether a ContentDescription was sent by the local client |
178 // or received from the remote client. | 183 // or received from the remote client. |
179 enum ContentSource { | 184 enum ContentSource { |
180 CS_LOCAL, CS_REMOTE | 185 CS_LOCAL, CS_REMOTE |
181 }; | 186 }; |
182 | 187 |
183 } // namespace cricket | 188 } // namespace cricket |
184 | 189 |
185 #endif // WEBRTC_P2P_BASE_SESSIONDESCRIPTION_H_ | 190 #endif // WEBRTC_P2P_BASE_SESSIONDESCRIPTION_H_ |
OLD | NEW |