| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Handles sending and receiving of candidates. The Transport | 69 // Handles sending and receiving of candidates. The Transport |
| 70 // receives the candidates and may forward them to the relevant | 70 // receives the candidates and may forward them to the relevant |
| 71 // channel. | 71 // channel. |
| 72 // | 72 // |
| 73 // Note: Since candidates are delivered asynchronously to the | 73 // Note: Since candidates are delivered asynchronously to the |
| 74 // channel, they cannot return an error if the message is invalid. | 74 // channel, they cannot return an error if the message is invalid. |
| 75 // It is assumed that the Transport will have checked validity | 75 // It is assumed that the Transport will have checked validity |
| 76 // before forwarding. | 76 // before forwarding. |
| 77 sigslot::signal2<TransportChannelImpl*, const Candidate&> | 77 sigslot::signal2<TransportChannelImpl*, const Candidate&> |
| 78 SignalCandidateGathered; | 78 SignalCandidateGathered; |
| 79 sigslot::signal2<TransportChannelImpl*, const Candidates&> | |
| 80 SignalCandidatesRemoved; | |
| 81 virtual void AddRemoteCandidate(const Candidate& candidate) = 0; | 79 virtual void AddRemoteCandidate(const Candidate& candidate) = 0; |
| 82 virtual void RemoveRemoteCandidate(const Candidate& candidate) = 0; | |
| 83 | 80 |
| 84 virtual IceGatheringState gathering_state() const = 0; | 81 virtual IceGatheringState gathering_state() const = 0; |
| 85 | 82 |
| 86 // DTLS methods | 83 // DTLS methods |
| 87 virtual bool SetLocalCertificate( | 84 virtual bool SetLocalCertificate( |
| 88 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) = 0; | 85 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) = 0; |
| 89 | 86 |
| 90 // Set DTLS Remote fingerprint. Must be after local identity set. | 87 // Set DTLS Remote fingerprint. Must be after local identity set. |
| 91 virtual bool SetRemoteFingerprint(const std::string& digest_alg, | 88 virtual bool SetRemoteFingerprint(const std::string& digest_alg, |
| 92 const uint8_t* digest, | 89 const uint8_t* digest, |
| 93 size_t digest_len) = 0; | 90 size_t digest_len) = 0; |
| 94 | 91 |
| 95 virtual bool SetSslRole(rtc::SSLRole role) = 0; | 92 virtual bool SetSslRole(rtc::SSLRole role) = 0; |
| 96 | 93 |
| 97 // Invoked when there is conflict in the ICE role between local and remote | 94 // Invoked when there is conflict in the ICE role between local and remote |
| 98 // agents. | 95 // agents. |
| 99 sigslot::signal1<TransportChannelImpl*> SignalRoleConflict; | 96 sigslot::signal1<TransportChannelImpl*> SignalRoleConflict; |
| 100 | 97 |
| 101 // Emitted whenever the number of connections available to the transport | 98 // Emitted whenever the number of connections available to the transport |
| 102 // channel decreases. | 99 // channel decreases. |
| 103 sigslot::signal1<TransportChannelImpl*> SignalConnectionRemoved; | 100 sigslot::signal1<TransportChannelImpl*> SignalConnectionRemoved; |
| 104 | 101 |
| 105 private: | 102 private: |
| 106 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannelImpl); | 103 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannelImpl); |
| 107 }; | 104 }; |
| 108 | 105 |
| 109 } // namespace cricket | 106 } // namespace cricket |
| 110 | 107 |
| 111 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELIMPL_H_ | 108 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNELIMPL_H_ |
| OLD | NEW |