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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 55 virtual void SetReceivingTimeout(int timeout_ms) = 0; |
56 | 56 |
57 // 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. |
58 virtual void Connect() = 0; | 58 virtual void Connect() = 0; |
59 | 59 |
60 // Allows an individual channel to request signaling and be notified when it | 60 sigslot::signal1<TransportChannelImpl*> SignalCandidatesAllocationStarted; |
61 // is ready. This is useful if the individual named channels have need to | |
62 // send their own transport-info stanzas. | |
63 sigslot::signal1<TransportChannelImpl*> SignalRequestSignaling; | |
64 virtual void OnSignalingReady() = 0; | |
65 | 61 |
66 // Handles sending and receiving of candidates. The Transport | 62 // Handles sending and receiving of candidates. The Transport |
67 // receives the candidates and may forward them to the relevant | 63 // receives the candidates and may forward them to the relevant |
68 // channel. | 64 // channel. |
69 // | 65 // |
70 // Note: Since candidates are delivered asynchronously to the | 66 // Note: Since candidates are delivered asynchronously to the |
71 // channel, they cannot return an error if the message is invalid. | 67 // channel, they cannot return an error if the message is invalid. |
72 // It is assumed that the Transport will have checked validity | 68 // It is assumed that the Transport will have checked validity |
73 // before forwarding. | 69 // before forwarding. |
74 sigslot::signal2<TransportChannelImpl*, | 70 sigslot::signal2<TransportChannelImpl*, |
75 const Candidate&> SignalCandidateReady; | 71 const Candidate&> SignalCandidateReady; |
76 virtual void OnCandidate(const Candidate& candidate) = 0; | 72 virtual void OnCandidate(const Candidate& candidate) = 0; |
77 | 73 |
| 74 virtual Transport::CandidateGatheringState candidate_gathering_state() |
| 75 const = 0; |
| 76 |
78 // DTLS methods | 77 // DTLS methods |
79 // Set DTLS local identity. The identity object is not copied, but the caller | 78 // Set DTLS local identity. The identity object is not copied, but the caller |
80 // retains ownership and must delete it after this TransportChannelImpl is | 79 // retains ownership and must delete it after this TransportChannelImpl is |
81 // destroyed. | 80 // destroyed. |
82 // TODO(bemasc): Fix the ownership semantics of this method. | 81 // TODO(bemasc): Fix the ownership semantics of this method. |
83 virtual bool SetLocalIdentity(rtc::SSLIdentity* identity) = 0; | 82 virtual bool SetLocalIdentity(rtc::SSLIdentity* identity) = 0; |
84 | 83 |
85 // Set DTLS Remote fingerprint. Must be after local identity set. | 84 // Set DTLS Remote fingerprint. Must be after local identity set. |
86 virtual bool SetRemoteFingerprint(const std::string& digest_alg, | 85 virtual bool SetRemoteFingerprint(const std::string& digest_alg, |
87 const uint8* digest, | 86 const uint8* digest, |
(...skipping 12 matching lines...) Expand all Loading... |
100 // channel decreases. | 99 // channel decreases. |
101 sigslot::signal1<TransportChannelImpl*> SignalConnectionRemoved; | 100 sigslot::signal1<TransportChannelImpl*> SignalConnectionRemoved; |
102 | 101 |
103 private: | 102 private: |
104 DISALLOW_COPY_AND_ASSIGN(TransportChannelImpl); | 103 DISALLOW_COPY_AND_ASSIGN(TransportChannelImpl); |
105 }; | 104 }; |
106 | 105 |
107 } // namespace cricket | 106 } // namespace cricket |
108 | 107 |
109 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELIMPL_H_ | 108 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELIMPL_H_ |
OLD | NEW |