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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 FunctorT& functor) { |
312 return worker_thread_->Invoke<bool>(functor); | 312 return worker_thread_->Invoke<bool>(FROM_HERE, functor); |
313 } | 313 } |
314 | 314 |
315 private: | 315 private: |
316 bool InitNetwork_n(); | 316 bool InitNetwork_n(); |
317 void DeinitNetwork_n(); | 317 void DeinitNetwork_n(); |
318 void SignalSentPacket_n(TransportChannel* channel, | 318 void SignalSentPacket_n(TransportChannel* channel, |
319 const rtc::SentPacket& sent_packet); | 319 const rtc::SentPacket& sent_packet); |
320 void SignalSentPacket_w(const rtc::SentPacket& sent_packet); | 320 void SignalSentPacket_w(const rtc::SentPacket& sent_packet); |
321 bool IsTransportReadyToSend_n() const; | 321 bool IsTransportReadyToSend_n() const; |
322 void CacheRtpAbsSendTimeHeaderExtension_n(int rtp_abs_sendtime_extn_id); | 322 void CacheRtpAbsSendTimeHeaderExtension_n(int rtp_abs_sendtime_extn_id); |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 // SetSendParameters. | 657 // SetSendParameters. |
658 DataSendParameters last_send_params_; | 658 DataSendParameters last_send_params_; |
659 // Last DataRecvParameters sent down to the media_channel() via | 659 // Last DataRecvParameters sent down to the media_channel() via |
660 // SetRecvParameters. | 660 // SetRecvParameters. |
661 DataRecvParameters last_recv_params_; | 661 DataRecvParameters last_recv_params_; |
662 }; | 662 }; |
663 | 663 |
664 } // namespace cricket | 664 } // namespace cricket |
665 | 665 |
666 #endif // WEBRTC_PC_CHANNEL_H_ | 666 #endif // WEBRTC_PC_CHANNEL_H_ |
OLD | NEW |