| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 WebRTCIceTransportsRelay, | 77 WebRTCIceTransportsRelay, |
| 78 WebRTCIceTransportsAll | 78 WebRTCIceTransportsAll |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 enum WebRTCBundlePolicy { | 81 enum WebRTCBundlePolicy { |
| 82 WebRTCBundlePolicyBalanced, | 82 WebRTCBundlePolicyBalanced, |
| 83 WebRTCBundlePolicyMaxCompat, | 83 WebRTCBundlePolicyMaxCompat, |
| 84 WebRTCBundlePolicyMaxBundle | 84 WebRTCBundlePolicyMaxBundle |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 enum WebRTCRtcpMuxPolicy { |
| 88 WebRTCRtcpMuxPolicyNegotiate, |
| 89 WebRTCRtcpMuxPolicyRequire |
| 90 }; |
| 91 |
| 87 class WebRTCConfiguration { | 92 class WebRTCConfiguration { |
| 88 public: | 93 public: |
| 89 WebRTCConfiguration() { } | 94 WebRTCConfiguration() { } |
| 90 WebRTCConfiguration(const WebRTCConfiguration& other) { assign(other); } | 95 WebRTCConfiguration(const WebRTCConfiguration& other) { assign(other); } |
| 91 ~WebRTCConfiguration() { reset(); } | 96 ~WebRTCConfiguration() { reset(); } |
| 92 | 97 |
| 93 WebRTCConfiguration& operator=(const WebRTCConfiguration& other) | 98 WebRTCConfiguration& operator=(const WebRTCConfiguration& other) |
| 94 { | 99 { |
| 95 assign(other); | 100 assign(other); |
| 96 return *this; | 101 return *this; |
| 97 } | 102 } |
| 98 | 103 |
| 99 BLINK_PLATFORM_EXPORT void assign(const WebRTCConfiguration&); | 104 BLINK_PLATFORM_EXPORT void assign(const WebRTCConfiguration&); |
| 100 | 105 |
| 101 BLINK_PLATFORM_EXPORT void reset(); | 106 BLINK_PLATFORM_EXPORT void reset(); |
| 102 bool isNull() const { return m_private.isNull(); } | 107 bool isNull() const { return m_private.isNull(); } |
| 103 | 108 |
| 104 BLINK_PLATFORM_EXPORT size_t numberOfServers() const; | 109 BLINK_PLATFORM_EXPORT size_t numberOfServers() const; |
| 105 BLINK_PLATFORM_EXPORT WebRTCICEServer server(size_t index) const; | 110 BLINK_PLATFORM_EXPORT WebRTCICEServer server(size_t index) const; |
| 106 | 111 |
| 107 BLINK_PLATFORM_EXPORT WebRTCIceTransports iceTransports() const; | 112 BLINK_PLATFORM_EXPORT WebRTCIceTransports iceTransports() const; |
| 108 | 113 |
| 109 BLINK_PLATFORM_EXPORT WebRTCBundlePolicy bundlePolicy() const; | 114 BLINK_PLATFORM_EXPORT WebRTCBundlePolicy bundlePolicy() const; |
| 110 | 115 |
| 116 BLINK_PLATFORM_EXPORT WebRTCRtcpMuxPolicy rtcpMuxPolicy() const; |
| 117 |
| 111 #if INSIDE_BLINK | 118 #if INSIDE_BLINK |
| 112 BLINK_PLATFORM_EXPORT WebRTCConfiguration(RTCConfiguration*); | 119 BLINK_PLATFORM_EXPORT WebRTCConfiguration(RTCConfiguration*); |
| 113 #endif | 120 #endif |
| 114 | 121 |
| 115 private: | 122 private: |
| 116 WebPrivatePtr<RTCConfiguration> m_private; | 123 WebPrivatePtr<RTCConfiguration> m_private; |
| 117 }; | 124 }; |
| 118 | 125 |
| 119 } // namespace blink | 126 } // namespace blink |
| 120 | 127 |
| 121 #endif // WebRTCConfiguration_h | 128 #endif // WebRTCConfiguration_h |
| OLD | NEW |