Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Side by Side Diff: webrtc/rtc_base/task_queue_impl.h

Issue 2936213003: Test using a global, replacable TaskQueueImpl factory.
Patch Set: Added global factory. Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698