| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 virtual void AddRemoteCandidate(const Candidate& candidate) = 0; | 97 virtual void AddRemoteCandidate(const Candidate& candidate) = 0; |
| 98 | 98 |
| 99 virtual void RemoveRemoteCandidate(const Candidate& candidate) = 0; | 99 virtual void RemoveRemoteCandidate(const Candidate& candidate) = 0; |
| 100 | 100 |
| 101 virtual IceGatheringState gathering_state() const = 0; | 101 virtual IceGatheringState gathering_state() const = 0; |
| 102 | 102 |
| 103 // Returns the current stats for this connection. | 103 // Returns the current stats for this connection. |
| 104 virtual bool GetStats(ConnectionInfos* infos) = 0; | 104 virtual bool GetStats(ConnectionInfos* infos) = 0; |
| 105 | 105 |
| 106 // Returns RTT estimate over the currently active connection, or an empty | |
| 107 // rtc::Optional if there is none. | |
| 108 virtual rtc::Optional<int> GetRttEstimate() = 0; | |
| 109 | |
| 110 sigslot::signal1<IceTransportInternal*> SignalGatheringState; | 106 sigslot::signal1<IceTransportInternal*> SignalGatheringState; |
| 111 | 107 |
| 112 // Handles sending and receiving of candidates. | 108 // Handles sending and receiving of candidates. |
| 113 sigslot::signal2<IceTransportInternal*, const Candidate&> | 109 sigslot::signal2<IceTransportInternal*, const Candidate&> |
| 114 SignalCandidateGathered; | 110 SignalCandidateGathered; |
| 115 | 111 |
| 116 sigslot::signal2<IceTransportInternal*, const Candidates&> | 112 sigslot::signal2<IceTransportInternal*, const Candidates&> |
| 117 SignalCandidatesRemoved; | 113 SignalCandidatesRemoved; |
| 118 | 114 |
| 119 // Deprecated by SignalSelectedCandidatePairChanged | 115 // Deprecated by SignalSelectedCandidatePairChanged |
| (...skipping 23 matching lines...) Expand all Loading... |
| 143 | 139 |
| 144 // Debugging description of this transport. | 140 // Debugging description of this transport. |
| 145 std::string debug_name() const override { | 141 std::string debug_name() const override { |
| 146 return transport_name() + " " + std::to_string(component()); | 142 return transport_name() + " " + std::to_string(component()); |
| 147 } | 143 } |
| 148 }; | 144 }; |
| 149 | 145 |
| 150 } // namespace cricket | 146 } // namespace cricket |
| 151 | 147 |
| 152 #endif // WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ | 148 #endif // WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ |
| OLD | NEW |