OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 virtual void SetIceCredentials(const std::string& ice_ufrag, | 52 virtual void SetIceCredentials(const std::string& ice_ufrag, |
53 const std::string& ice_pwd) = 0; | 53 const std::string& ice_pwd) = 0; |
54 // SetRemoteIceCredentials only need to be implemented by the ICE | 54 // SetRemoteIceCredentials only need to be implemented by the ICE |
55 // transport channels. Non-ICE transport channels can just ignore. | 55 // transport channels. Non-ICE transport channels can just ignore. |
56 virtual void SetRemoteIceCredentials(const std::string& ice_ufrag, | 56 virtual void SetRemoteIceCredentials(const std::string& ice_ufrag, |
57 const std::string& ice_pwd) = 0; | 57 const std::string& ice_pwd) = 0; |
58 | 58 |
59 // SetRemoteIceMode must be implemented only by the ICE transport channels. | 59 // SetRemoteIceMode must be implemented only by the ICE transport channels. |
60 virtual void SetRemoteIceMode(IceMode mode) = 0; | 60 virtual void SetRemoteIceMode(IceMode mode) = 0; |
61 | 61 |
62 virtual void SetReceivingTimeout(int timeout_ms) = 0; | 62 virtual void SetIceConfig(const IceConfig& config) = 0; |
63 | 63 |
64 // Begins the process of attempting to make a connection to the other client. | 64 // Begins the process of attempting to make a connection to the other client. |
65 virtual void Connect() = 0; | 65 virtual void Connect() = 0; |
66 | 66 |
67 // Start gathering candidates if not already started, or if an ICE restart | 67 // Start gathering candidates if not already started, or if an ICE restart |
68 // occurred. | 68 // occurred. |
69 virtual void MaybeStartGathering() = 0; | 69 virtual void MaybeStartGathering() = 0; |
70 | 70 |
71 sigslot::signal1<TransportChannelImpl*> SignalGatheringState; | 71 sigslot::signal1<TransportChannelImpl*> SignalGatheringState; |
72 | 72 |
(...skipping 30 matching lines...) Expand all Loading... |
103 // channel decreases. | 103 // channel decreases. |
104 sigslot::signal1<TransportChannelImpl*> SignalConnectionRemoved; | 104 sigslot::signal1<TransportChannelImpl*> SignalConnectionRemoved; |
105 | 105 |
106 private: | 106 private: |
107 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannelImpl); | 107 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannelImpl); |
108 }; | 108 }; |
109 | 109 |
110 } // namespace cricket | 110 } // namespace cricket |
111 | 111 |
112 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELIMPL_H_ | 112 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELIMPL_H_ |
OLD | NEW |