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

Unified Diff: Source/platform/mediastream/RTCConfiguration.h

Issue 1116253004: Add RtcpMuxPolicy to PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: make negotiate the default 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/exported/WebRTCConfiguration.cpp ('k') | public/platform/WebRTCConfiguration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/mediastream/RTCConfiguration.h
diff --git a/Source/platform/mediastream/RTCConfiguration.h b/Source/platform/mediastream/RTCConfiguration.h
index cc37be0a724d9ec2af077d66253c01cf7947f0b9..e64b7f40a7995e18667ee795ae849f4706ed6522 100644
--- a/Source/platform/mediastream/RTCConfiguration.h
+++ b/Source/platform/mediastream/RTCConfiguration.h
@@ -77,6 +77,11 @@ enum RTCBundlePolicy {
RTCBundlePolicyMaxBundle
};
+enum RTCRtcpMuxPolicy {
+ RTCRtcpMuxPolicyNegotiate,
+ RTCRtcpMuxPolicyRequire
+};
+
class RTCConfiguration final : public GarbageCollected<RTCConfiguration> {
public:
static RTCConfiguration* create() { return new RTCConfiguration(); }
@@ -88,15 +93,21 @@ public:
RTCIceTransports iceTransports() { return m_iceTransports; }
void setBundlePolicy(RTCBundlePolicy bundlePolicy) { m_bundlePolicy = bundlePolicy; }
RTCBundlePolicy bundlePolicy() { return m_bundlePolicy; }
+ void setRtcpMuxPolicy(RTCRtcpMuxPolicy rtcpMuxPolicy) { m_rtcpMuxPolicy = rtcpMuxPolicy; }
+ RTCRtcpMuxPolicy rtcpMuxPolicy() { return m_rtcpMuxPolicy; }
DEFINE_INLINE_TRACE() { visitor->trace(m_servers); }
private:
- RTCConfiguration() : m_iceTransports(RTCIceTransportsAll), m_bundlePolicy(RTCBundlePolicyBalanced) { }
+ RTCConfiguration() :
+ m_iceTransports(RTCIceTransportsAll),
+ m_bundlePolicy(RTCBundlePolicyBalanced),
+ m_rtcpMuxPolicy(RTCRtcpMuxPolicyNegotiate) { }
HeapVector<Member<RTCIceServer>> m_servers;
RTCIceTransports m_iceTransports;
RTCBundlePolicy m_bundlePolicy;
+ RTCRtcpMuxPolicy m_rtcpMuxPolicy;
};
} // namespace blink
« no previous file with comments | « Source/platform/exported/WebRTCConfiguration.cpp ('k') | public/platform/WebRTCConfiguration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698