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