| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |