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

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

Issue 2562183002: Implement parsing/serialization of a=bundle-only. (Closed)
Patch Set: Created 4 years 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
« webrtc/api/webrtcsdp_unittest.cc ('K') | « webrtc/p2p/base/sessiondescription.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/sessiondescription.cc
diff --git a/webrtc/p2p/base/sessiondescription.cc b/webrtc/p2p/base/sessiondescription.cc
index 5320b0596ab47c86ba8398058364c12aa13b82a6..1e69c83e76243da6d0864025624435a2e12d2d01 100644
--- a/webrtc/p2p/base/sessiondescription.cc
+++ b/webrtc/p2p/base/sessiondescription.cc
@@ -132,6 +132,15 @@ void SessionDescription::AddContent(const std::string& name,
contents_.push_back(ContentInfo(name, type, rejected, description));
}
+void SessionDescription::AddContent(const std::string& name,
+ const std::string& type,
+ bool rejected,
+ bool bundle_only,
+ ContentDescription* description) {
+ contents_.push_back(
+ ContentInfo(name, type, rejected, bundle_only, description));
+}
+
bool SessionDescription::RemoveContentByName(const std::string& name) {
for (ContentInfos::iterator content = contents_.begin();
content != contents_.end(); ++content) {
« webrtc/api/webrtcsdp_unittest.cc ('K') | « webrtc/p2p/base/sessiondescription.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698