| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_P2P_BASE_TRANSPORTDESCRIPTIONFACTORY_H_ | 11 #ifndef WEBRTC_P2P_BASE_TRANSPORTDESCRIPTIONFACTORY_H_ |
| 12 #define WEBRTC_P2P_BASE_TRANSPORTDESCRIPTIONFACTORY_H_ | 12 #define WEBRTC_P2P_BASE_TRANSPORTDESCRIPTIONFACTORY_H_ |
| 13 | 13 |
| 14 #include "webrtc/base/rtccertificate.h" | 14 #include "webrtc/base/rtccertificate.h" |
| 15 #include "webrtc/p2p/base/transportdescription.h" | 15 #include "webrtc/p2p/base/transportdescription.h" |
| 16 | 16 |
| 17 namespace rtc { | 17 namespace rtc { |
| 18 class SSLIdentity; | 18 class SSLIdentity; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace cricket { | 21 namespace cricket { |
| 22 | 22 |
| 23 struct TransportOptions { | 23 struct TransportOptions { |
| 24 TransportOptions() : ice_restart(false), prefer_passive_role(false) {} | 24 bool ice_restart = false; |
| 25 bool ice_restart; | 25 bool prefer_passive_role = false; |
| 26 bool prefer_passive_role; | 26 // If true, ICE renomination is supported and will be used if it is also |
| 27 // supported by the remote side. |
| 28 bool enable_ice_renomination = false; |
| 27 }; | 29 }; |
| 28 | 30 |
| 29 // Creates transport descriptions according to the supplied configuration. | 31 // Creates transport descriptions according to the supplied configuration. |
| 30 // When creating answers, performs the appropriate negotiation | 32 // When creating answers, performs the appropriate negotiation |
| 31 // of the various fields to determine the proper result. | 33 // of the various fields to determine the proper result. |
| 32 class TransportDescriptionFactory { | 34 class TransportDescriptionFactory { |
| 33 public: | 35 public: |
| 34 // Default ctor; use methods below to set configuration. | 36 // Default ctor; use methods below to set configuration. |
| 35 TransportDescriptionFactory(); | 37 TransportDescriptionFactory(); |
| 36 SecurePolicy secure() const { return secure_; } | 38 SecurePolicy secure() const { return secure_; } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 60 bool SetSecurityInfo(TransportDescription* description, | 62 bool SetSecurityInfo(TransportDescription* description, |
| 61 ConnectionRole role) const; | 63 ConnectionRole role) const; |
| 62 | 64 |
| 63 SecurePolicy secure_; | 65 SecurePolicy secure_; |
| 64 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; | 66 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; |
| 65 }; | 67 }; |
| 66 | 68 |
| 67 } // namespace cricket | 69 } // namespace cricket |
| 68 | 70 |
| 69 #endif // WEBRTC_P2P_BASE_TRANSPORTDESCRIPTIONFACTORY_H_ | 71 #endif // WEBRTC_P2P_BASE_TRANSPORTDESCRIPTIONFACTORY_H_ |
| OLD | NEW |