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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « Source/platform/exported/WebRTCConfiguration.cpp ('k') | public/platform/WebRTCConfiguration.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 RTCIceTransportsRelay, 70 RTCIceTransportsRelay,
71 RTCIceTransportsAll 71 RTCIceTransportsAll
72 }; 72 };
73 73
74 enum RTCBundlePolicy { 74 enum RTCBundlePolicy {
75 RTCBundlePolicyBalanced, 75 RTCBundlePolicyBalanced,
76 RTCBundlePolicyMaxCompat, 76 RTCBundlePolicyMaxCompat,
77 RTCBundlePolicyMaxBundle 77 RTCBundlePolicyMaxBundle
78 }; 78 };
79 79
80 enum RTCRtcpMuxPolicy {
81 RTCRtcpMuxPolicyNegotiate,
82 RTCRtcpMuxPolicyRequire
83 };
84
80 class RTCConfiguration final : public GarbageCollected<RTCConfiguration> { 85 class RTCConfiguration final : public GarbageCollected<RTCConfiguration> {
81 public: 86 public:
82 static RTCConfiguration* create() { return new RTCConfiguration(); } 87 static RTCConfiguration* create() { return new RTCConfiguration(); }
83 88
84 void appendServer(RTCIceServer* server) { m_servers.append(server); } 89 void appendServer(RTCIceServer* server) { m_servers.append(server); }
85 size_t numberOfServers() { return m_servers.size(); } 90 size_t numberOfServers() { return m_servers.size(); }
86 RTCIceServer* server(size_t index) { return m_servers[index].get(); } 91 RTCIceServer* server(size_t index) { return m_servers[index].get(); }
87 void setIceTransports(RTCIceTransports iceTransports) { m_iceTransports = ic eTransports; } 92 void setIceTransports(RTCIceTransports iceTransports) { m_iceTransports = ic eTransports; }
88 RTCIceTransports iceTransports() { return m_iceTransports; } 93 RTCIceTransports iceTransports() { return m_iceTransports; }
89 void setBundlePolicy(RTCBundlePolicy bundlePolicy) { m_bundlePolicy = bundle Policy; } 94 void setBundlePolicy(RTCBundlePolicy bundlePolicy) { m_bundlePolicy = bundle Policy; }
90 RTCBundlePolicy bundlePolicy() { return m_bundlePolicy; } 95 RTCBundlePolicy bundlePolicy() { return m_bundlePolicy; }
96 void setRtcpMuxPolicy(RTCRtcpMuxPolicy rtcpMuxPolicy) { m_rtcpMuxPolicy = rt cpMuxPolicy; }
97 RTCRtcpMuxPolicy rtcpMuxPolicy() { return m_rtcpMuxPolicy; }
91 98
92 DEFINE_INLINE_TRACE() { visitor->trace(m_servers); } 99 DEFINE_INLINE_TRACE() { visitor->trace(m_servers); }
93 100
94 private: 101 private:
95 RTCConfiguration() : m_iceTransports(RTCIceTransportsAll), m_bundlePolicy(RT CBundlePolicyBalanced) { } 102 RTCConfiguration() :
103 m_iceTransports(RTCIceTransportsAll),
104 m_bundlePolicy(RTCBundlePolicyBalanced),
105 m_rtcpMuxPolicy(RTCRtcpMuxPolicyNegotiate) { }
96 106
97 HeapVector<Member<RTCIceServer>> m_servers; 107 HeapVector<Member<RTCIceServer>> m_servers;
98 RTCIceTransports m_iceTransports; 108 RTCIceTransports m_iceTransports;
99 RTCBundlePolicy m_bundlePolicy; 109 RTCBundlePolicy m_bundlePolicy;
110 RTCRtcpMuxPolicy m_rtcpMuxPolicy;
100 }; 111 };
101 112
102 } // namespace blink 113 } // namespace blink
103 114
104 #endif // RTCConfiguration_h 115 #endif // RTCConfiguration_h
OLDNEW
« 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