| 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 |
| 106 sigslot::signal1<IceTransportInternal*> SignalGatheringState; | 110 sigslot::signal1<IceTransportInternal*> SignalGatheringState; |
| 107 | 111 |
| 108 // Handles sending and receiving of candidates. | 112 // Handles sending and receiving of candidates. |
| 109 sigslot::signal2<IceTransportInternal*, const Candidate&> | 113 sigslot::signal2<IceTransportInternal*, const Candidate&> |
| 110 SignalCandidateGathered; | 114 SignalCandidateGathered; |
| 111 | 115 |
| 112 sigslot::signal2<IceTransportInternal*, const Candidates&> | 116 sigslot::signal2<IceTransportInternal*, const Candidates&> |
| 113 SignalCandidatesRemoved; | 117 SignalCandidatesRemoved; |
| 114 | 118 |
| 115 // Deprecated by SignalSelectedCandidatePairChanged | 119 // Deprecated by SignalSelectedCandidatePairChanged |
| (...skipping 23 matching lines...) Expand all Loading... |
| 139 | 143 |
| 140 // Debugging description of this transport. | 144 // Debugging description of this transport. |
| 141 std::string debug_name() const override { | 145 std::string debug_name() const override { |
| 142 return transport_name() + " " + std::to_string(component()); | 146 return transport_name() + " " + std::to_string(component()); |
| 143 } | 147 } |
| 144 }; | 148 }; |
| 145 | 149 |
| 146 } // namespace cricket | 150 } // namespace cricket |
| 147 | 151 |
| 148 #endif // WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ | 152 #endif // WEBRTC_P2P_BASE_ICETRANSPORTINTERNAL_H_ |
| OLD | NEW |