| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual void SetIceCredentials(const std::string& ice_ufrag, | 45 virtual void SetIceCredentials(const std::string& ice_ufrag, |
| 46 const std::string& ice_pwd) = 0; | 46 const std::string& ice_pwd) = 0; |
| 47 // SetRemoteIceCredentials only need to be implemented by the ICE | 47 // SetRemoteIceCredentials only need to be implemented by the ICE |
| 48 // transport channels. Non-ICE transport channels can just ignore. | 48 // transport channels. Non-ICE transport channels can just ignore. |
| 49 virtual void SetRemoteIceCredentials(const std::string& ice_ufrag, | 49 virtual void SetRemoteIceCredentials(const std::string& ice_ufrag, |
| 50 const std::string& ice_pwd) = 0; | 50 const std::string& ice_pwd) = 0; |
| 51 | 51 |
| 52 // SetRemoteIceMode must be implemented only by the ICE transport channels. | 52 // SetRemoteIceMode must be implemented only by the ICE transport channels. |
| 53 virtual void SetRemoteIceMode(IceMode mode) = 0; | 53 virtual void SetRemoteIceMode(IceMode mode) = 0; |
| 54 | 54 |
| 55 virtual void SetReceivingTimeout(int timeout_ms) = 0; |
| 56 |
| 55 // Begins the process of attempting to make a connection to the other client. | 57 // Begins the process of attempting to make a connection to the other client. |
| 56 virtual void Connect() = 0; | 58 virtual void Connect() = 0; |
| 57 | 59 |
| 58 // Allows an individual channel to request signaling and be notified when it | 60 // Allows an individual channel to request signaling and be notified when it |
| 59 // is ready. This is useful if the individual named channels have need to | 61 // is ready. This is useful if the individual named channels have need to |
| 60 // send their own transport-info stanzas. | 62 // send their own transport-info stanzas. |
| 61 sigslot::signal1<TransportChannelImpl*> SignalRequestSignaling; | 63 sigslot::signal1<TransportChannelImpl*> SignalRequestSignaling; |
| 62 virtual void OnSignalingReady() = 0; | 64 virtual void OnSignalingReady() = 0; |
| 63 | 65 |
| 64 // Handles sending and receiving of candidates. The Transport | 66 // Handles sending and receiving of candidates. The Transport |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // channel decreases. | 100 // channel decreases. |
| 99 sigslot::signal1<TransportChannelImpl*> SignalConnectionRemoved; | 101 sigslot::signal1<TransportChannelImpl*> SignalConnectionRemoved; |
| 100 | 102 |
| 101 private: | 103 private: |
| 102 DISALLOW_COPY_AND_ASSIGN(TransportChannelImpl); | 104 DISALLOW_COPY_AND_ASSIGN(TransportChannelImpl); |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 } // namespace cricket | 107 } // namespace cricket |
| 106 | 108 |
| 107 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELIMPL_H_ | 109 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELIMPL_H_ |
| OLD | NEW |