OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2017 The WebRTC Project Authors. All rights reserved. |
| 3 * |
| 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 |
| 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ |
| 10 |
| 11 #ifndef WEBRTC_RTC_BASE_TASK_QUEUE_IMPL_H_ |
| 12 #define WEBRTC_RTC_BASE_TASK_QUEUE_IMPL_H_ |
| 13 |
| 14 #include <memory> |
| 15 |
| 16 #include "webrtc/rtc_base/refcount.h" |
| 17 #include "webrtc/rtc_base/scoped_ref_ptr.h" |
| 18 #include "webrtc/rtc_base/task_queue.h" |
| 19 |
| 20 namespace rtc { |
| 21 |
| 22 class TaskQueueImpl : public RefCountInterface { |
| 23 public: |
| 24 virtual bool IsCurrent() const = 0; |
| 25 virtual void PostTask(std::unique_ptr<QueuedTask> task) = 0; |
| 26 virtual void PostTaskAndReply(std::unique_ptr<QueuedTask> task, |
| 27 std::unique_ptr<QueuedTask> reply, |
| 28 TaskQueueImpl* reply_queue) = 0; |
| 29 virtual void PostDelayedTask(std::unique_ptr<QueuedTask> task, |
| 30 uint32_t milliseconds) = 0; |
| 31 }; |
| 32 |
| 33 } // namespace rtc |
| 34 #endif // WEBRTC_RTC_BASE_TASK_QUEUE_IMPL_H_ |
OLD | NEW |