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

Unified Diff: webrtc/p2p/base/sessiondescription.cc

Issue 2991693002: Adding support for Unified Plan offer/answer negotiation. (Closed)
Patch Set: Review comments. Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/p2p/base/sessiondescription.cc
diff --git a/webrtc/p2p/base/sessiondescription.cc b/webrtc/p2p/base/sessiondescription.cc
index 1e69c83e76243da6d0864025624435a2e12d2d01..c0f190692c1975947545023fe268efb44f378f34 100644
--- a/webrtc/p2p/base/sessiondescription.cc
+++ b/webrtc/p2p/base/sessiondescription.cc
@@ -122,14 +122,18 @@ const ContentInfo* SessionDescription::FirstContent() const {
void SessionDescription::AddContent(const std::string& name,
const std::string& type,
ContentDescription* description) {
- contents_.push_back(ContentInfo(name, type, description));
+ ContentInfo content_info(name, type, description);
+ content_info.msection_index = contents_.size();
+ contents_.push_back(content_info);
}
void SessionDescription::AddContent(const std::string& name,
const std::string& type,
bool rejected,
ContentDescription* description) {
- contents_.push_back(ContentInfo(name, type, rejected, description));
+ ContentInfo content_info(name, type, rejected, description);
+ content_info.msection_index = contents_.size();
+ contents_.push_back(content_info);
}
void SessionDescription::AddContent(const std::string& name,
@@ -137,8 +141,9 @@ void SessionDescription::AddContent(const std::string& name,
bool rejected,
bool bundle_only,
ContentDescription* description) {
- contents_.push_back(
- ContentInfo(name, type, rejected, bundle_only, description));
+ ContentInfo content_info(name, type, rejected, bundle_only, description);
+ content_info.msection_index = contents_.size();
+ contents_.push_back(content_info);
}
bool SessionDescription::RemoveContentByName(const std::string& name) {

Powered by Google App Engine
This is Rietveld 408576698