diff --git a/rtc_base/task_queue.h b/rtc_base/task_queue.h index cae95340bc..e52c49cf00 100644 --- a/rtc_base/task_queue.h +++ b/rtc_base/task_queue.h @@ -90,16 +90,22 @@ class RTC_LOCKABLE RTC_EXPORT TaskQueue { // Returns non-owning pointer to the task queue implementation. webrtc::TaskQueueBase* Get() { return impl_; } - void PostTask(absl::AnyInvocable task) { - impl_->PostTask(std::move(task)); + void PostTask( + absl::AnyInvocable task, + const webrtc::Location& location = webrtc::Location::Current()) { + impl_->PostTask(std::move(task), location); } - void PostDelayedTask(absl::AnyInvocable task, - webrtc::TimeDelta delay) { - impl_->PostDelayedTask(std::move(task), delay); + void PostDelayedTask( + absl::AnyInvocable task, + webrtc::TimeDelta delay, + const webrtc::Location& location = webrtc::Location::Current()) { + impl_->PostDelayedTask(std::move(task), delay, location); } - void PostDelayedHighPrecisionTask(absl::AnyInvocable task, - webrtc::TimeDelta delay) { - impl_->PostDelayedHighPrecisionTask(std::move(task), delay); + void PostDelayedHighPrecisionTask( + absl::AnyInvocable task, + webrtc::TimeDelta delay, + const webrtc::Location& location = webrtc::Location::Current()) { + impl_->PostDelayedHighPrecisionTask(std::move(task), delay, location); } private: