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

Side by Side Diff: third_party/WebKit/public/platform/scheduler/base/task_queue.h

Issue 2542203004: blink: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_H_ 5 #ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_H_
6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_H_ 6 #define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/optional.h" 10 #include "base/optional.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "public/platform/WebCommon.h" 13 #include "public/platform/WebCommon.h"
14 14
15 namespace base { 15 namespace base {
16 namespace trace_event { 16 namespace trace_event {
17 class BlameContext; 17 class BlameContext;
18 } 18 }
19 } 19 }
20 20
21 namespace blink { 21 namespace blink {
22 namespace scheduler { 22 namespace scheduler {
23 namespace internal { 23
24 class TaskQueueImpl;
25 } // namespace internal
26 class FakeWebTaskRunner;
27 class LazyNow;
28 class TimeDomain; 24 class TimeDomain;
29 25
30 class BLINK_PLATFORM_EXPORT TaskQueue : public base::SingleThreadTaskRunner { 26 class BLINK_PLATFORM_EXPORT TaskQueue : public base::SingleThreadTaskRunner {
31 public: 27 public:
32 TaskQueue() {} 28 TaskQueue() {}
33 29
34 // Unregisters the task queue after which no tasks posted to it will run and 30 // Unregisters the task queue after which no tasks posted to it will run and
35 // the TaskQueueManager's reference to it will be released soon. 31 // the TaskQueueManager's reference to it will be released soon.
36 virtual void UnregisterTaskQueue() = 0; 32 virtual void UnregisterTaskQueue() = 0;
37 33
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 protected: 210 protected:
215 ~TaskQueue() override {} 211 ~TaskQueue() override {}
216 212
217 DISALLOW_COPY_AND_ASSIGN(TaskQueue); 213 DISALLOW_COPY_AND_ASSIGN(TaskQueue);
218 }; 214 };
219 215
220 } // namespace scheduler 216 } // namespace scheduler
221 } // namespace blink 217 } // namespace blink
222 218
223 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_H_ 219 #endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_QUEUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698