OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 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 10 matching lines...) Loading... |
21 #include "webrtc/base/refcountedobject.h" | 21 #include "webrtc/base/refcountedobject.h" |
22 #include "webrtc/base/sigslot.h" | 22 #include "webrtc/base/sigslot.h" |
23 #include "webrtc/base/sslstreamadapter.h" | 23 #include "webrtc/base/sslstreamadapter.h" |
24 #include "webrtc/p2p/base/candidate.h" | 24 #include "webrtc/p2p/base/candidate.h" |
25 #include "webrtc/p2p/base/dtlstransportchannel.h" | 25 #include "webrtc/p2p/base/dtlstransportchannel.h" |
26 #include "webrtc/p2p/base/jseptransport.h" | 26 #include "webrtc/p2p/base/jseptransport.h" |
27 #include "webrtc/p2p/base/p2ptransportchannel.h" | 27 #include "webrtc/p2p/base/p2ptransportchannel.h" |
28 | 28 |
29 namespace rtc { | 29 namespace rtc { |
30 class Thread; | 30 class Thread; |
31 class PacketTransportInterface; | 31 class PacketTransportInternal; |
32 } | 32 } |
33 namespace webrtc { | 33 namespace webrtc { |
34 class MetricsObserverInterface; | 34 class MetricsObserverInterface; |
35 } | 35 } |
36 | 36 |
37 namespace cricket { | 37 namespace cricket { |
38 | 38 |
39 class TransportController : public sigslot::has_slots<>, | 39 class TransportController : public sigslot::has_slots<>, |
40 public rtc::MessageHandler { | 40 public rtc::MessageHandler { |
41 public: | 41 public: |
(...skipping 182 matching lines...) Loading... |
224 void MaybeStartGathering_n(); | 224 void MaybeStartGathering_n(); |
225 bool AddRemoteCandidates_n(const std::string& transport_name, | 225 bool AddRemoteCandidates_n(const std::string& transport_name, |
226 const Candidates& candidates, | 226 const Candidates& candidates, |
227 std::string* err); | 227 std::string* err); |
228 bool RemoveRemoteCandidates_n(const Candidates& candidates, std::string* err); | 228 bool RemoveRemoteCandidates_n(const Candidates& candidates, std::string* err); |
229 bool ReadyForRemoteCandidates_n(const std::string& transport_name) const; | 229 bool ReadyForRemoteCandidates_n(const std::string& transport_name) const; |
230 bool GetStats_n(const std::string& transport_name, TransportStats* stats); | 230 bool GetStats_n(const std::string& transport_name, TransportStats* stats); |
231 void SetMetricsObserver_n(webrtc::MetricsObserverInterface* metrics_observer); | 231 void SetMetricsObserver_n(webrtc::MetricsObserverInterface* metrics_observer); |
232 | 232 |
233 // Handlers for signals from Transport. | 233 // Handlers for signals from Transport. |
234 void OnChannelWritableState_n(rtc::PacketTransportInterface* transport); | 234 void OnChannelWritableState_n(rtc::PacketTransportInternal* transport); |
235 void OnChannelReceivingState_n(rtc::PacketTransportInterface* transport); | 235 void OnChannelReceivingState_n(rtc::PacketTransportInternal* transport); |
236 void OnChannelGatheringState_n(IceTransportInternal* channel); | 236 void OnChannelGatheringState_n(IceTransportInternal* channel); |
237 void OnChannelCandidateGathered_n(IceTransportInternal* channel, | 237 void OnChannelCandidateGathered_n(IceTransportInternal* channel, |
238 const Candidate& candidate); | 238 const Candidate& candidate); |
239 void OnChannelCandidatesRemoved(const Candidates& candidates); | 239 void OnChannelCandidatesRemoved(const Candidates& candidates); |
240 void OnChannelCandidatesRemoved_n(IceTransportInternal* channel, | 240 void OnChannelCandidatesRemoved_n(IceTransportInternal* channel, |
241 const Candidates& candidates); | 241 const Candidates& candidates); |
242 void OnChannelRoleConflict_n(IceTransportInternal* channel); | 242 void OnChannelRoleConflict_n(IceTransportInternal* channel); |
243 void OnChannelStateChanged_n(IceTransportInternal* channel); | 243 void OnChannelStateChanged_n(IceTransportInternal* channel); |
244 | 244 |
245 void UpdateAggregateStates_n(); | 245 void UpdateAggregateStates_n(); |
(...skipping 23 matching lines...) Loading... |
269 bool quic_ = false; | 269 bool quic_ = false; |
270 | 270 |
271 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; | 271 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; |
272 | 272 |
273 RTC_DISALLOW_COPY_AND_ASSIGN(TransportController); | 273 RTC_DISALLOW_COPY_AND_ASSIGN(TransportController); |
274 }; | 274 }; |
275 | 275 |
276 } // namespace cricket | 276 } // namespace cricket |
277 | 277 |
278 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ | 278 #endif // WEBRTC_P2P_BASE_TRANSPORTCONTROLLER_H_ |
OLD | NEW |