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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // | 75 // |
76 // Note: Since candidates are delivered asynchronously to the | 76 // Note: Since candidates are delivered asynchronously to the |
77 // channel, they cannot return an error if the message is invalid. | 77 // channel, they cannot return an error if the message is invalid. |
78 // It is assumed that the Transport will have checked validity | 78 // It is assumed that the Transport will have checked validity |
79 // before forwarding. | 79 // before forwarding. |
80 sigslot::signal2<TransportChannelImpl*, | 80 sigslot::signal2<TransportChannelImpl*, |
81 const Candidate&> SignalCandidateReady; | 81 const Candidate&> SignalCandidateReady; |
82 virtual void OnCandidate(const Candidate& candidate) = 0; | 82 virtual void OnCandidate(const Candidate& candidate) = 0; |
83 | 83 |
84 // DTLS methods | 84 // DTLS methods |
85 // Set DTLS local identity. The identity object is not copied, but the caller | 85 virtual bool SetLocalCertificate( |
86 // retains ownership and must delete it after this TransportChannelImpl is | 86 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) = 0; |
87 // destroyed. | |
88 // TODO(bemasc): Fix the ownership semantics of this method. | |
89 virtual bool SetLocalIdentity(rtc::SSLIdentity* identity) = 0; | |
90 | 87 |
91 // Set DTLS Remote fingerprint. Must be after local identity set. | 88 // Set DTLS Remote fingerprint. Must be after local identity set. |
92 virtual bool SetRemoteFingerprint(const std::string& digest_alg, | 89 virtual bool SetRemoteFingerprint(const std::string& digest_alg, |
93 const uint8* digest, | 90 const uint8* digest, |
94 size_t digest_len) = 0; | 91 size_t digest_len) = 0; |
95 | 92 |
96 virtual bool SetSslRole(rtc::SSLRole role) = 0; | 93 virtual bool SetSslRole(rtc::SSLRole role) = 0; |
97 | 94 |
98 // TransportChannel is forwarding this signal from PortAllocatorSession. | 95 // TransportChannel is forwarding this signal from PortAllocatorSession. |
99 sigslot::signal1<TransportChannelImpl*> SignalCandidatesAllocationDone; | 96 sigslot::signal1<TransportChannelImpl*> SignalCandidatesAllocationDone; |
100 | 97 |
101 // Invoked when there is conflict in the ICE role between local and remote | 98 // Invoked when there is conflict in the ICE role between local and remote |
102 // agents. | 99 // agents. |
103 sigslot::signal1<TransportChannelImpl*> SignalRoleConflict; | 100 sigslot::signal1<TransportChannelImpl*> SignalRoleConflict; |
104 | 101 |
105 // Emitted whenever the number of connections available to the transport | 102 // Emitted whenever the number of connections available to the transport |
106 // channel decreases. | 103 // channel decreases. |
107 sigslot::signal1<TransportChannelImpl*> SignalConnectionRemoved; | 104 sigslot::signal1<TransportChannelImpl*> SignalConnectionRemoved; |
108 | 105 |
109 private: | 106 private: |
110 DISALLOW_COPY_AND_ASSIGN(TransportChannelImpl); | 107 DISALLOW_COPY_AND_ASSIGN(TransportChannelImpl); |
111 }; | 108 }; |
112 | 109 |
113 } // namespace cricket | 110 } // namespace cricket |
114 | 111 |
115 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELIMPL_H_ | 112 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELIMPL_H_ |
OLD | NEW |