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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 void OnMessage(rtc::Message* pmsg) override; | 301 void OnMessage(rtc::Message* pmsg) override; |
302 | 302 |
303 // Handled in derived classes | 303 // Handled in derived classes |
304 // Get the SRTP crypto suites to use for RTP media | 304 // Get the SRTP crypto suites to use for RTP media |
305 virtual void GetSrtpCryptoSuites_n(std::vector<int>* crypto_suites) const = 0; | 305 virtual void GetSrtpCryptoSuites_n(std::vector<int>* crypto_suites) const = 0; |
306 virtual void OnConnectionMonitorUpdate(ConnectionMonitor* monitor, | 306 virtual void OnConnectionMonitorUpdate(ConnectionMonitor* monitor, |
307 const std::vector<ConnectionInfo>& infos) = 0; | 307 const std::vector<ConnectionInfo>& infos) = 0; |
308 | 308 |
309 // Helper function for invoking bool-returning methods on the worker thread. | 309 // Helper function for invoking bool-returning methods on the worker thread. |
310 template <class FunctorT> | 310 template <class FunctorT> |
311 bool InvokeOnWorker(const FunctorT& functor) { | 311 bool InvokeOnWorker(const rtc::Location& posted_from, |
312 return worker_thread_->Invoke<bool>(functor); | 312 const FunctorT& functor) { |
| 313 return worker_thread_->Invoke<bool>(posted_from, functor); |
313 } | 314 } |
314 | 315 |
315 private: | 316 private: |
316 bool InitNetwork_n(const std::string* bundle_transport_name); | 317 bool InitNetwork_n(const std::string* bundle_transport_name); |
317 void DisconnectTransportChannels_n(); | 318 void DisconnectTransportChannels_n(); |
318 void DestroyTransportChannels_n(); | 319 void DestroyTransportChannels_n(); |
319 void SignalSentPacket_n(TransportChannel* channel, | 320 void SignalSentPacket_n(TransportChannel* channel, |
320 const rtc::SentPacket& sent_packet); | 321 const rtc::SentPacket& sent_packet); |
321 void SignalSentPacket_w(const rtc::SentPacket& sent_packet); | 322 void SignalSentPacket_w(const rtc::SentPacket& sent_packet); |
322 bool IsTransportReadyToSend_n() const; | 323 bool IsTransportReadyToSend_n() const; |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 // SetSendParameters. | 676 // SetSendParameters. |
676 DataSendParameters last_send_params_; | 677 DataSendParameters last_send_params_; |
677 // Last DataRecvParameters sent down to the media_channel() via | 678 // Last DataRecvParameters sent down to the media_channel() via |
678 // SetRecvParameters. | 679 // SetRecvParameters. |
679 DataRecvParameters last_recv_params_; | 680 DataRecvParameters last_recv_params_; |
680 }; | 681 }; |
681 | 682 |
682 } // namespace cricket | 683 } // namespace cricket |
683 | 684 |
684 #endif // WEBRTC_PC_CHANNEL_H_ | 685 #endif // WEBRTC_PC_CHANNEL_H_ |
OLD | NEW |