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

Side by Side Diff: content/child/scheduler/worker_scheduler.h

Issue 1058873010: Move blink scheduler implementation into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 8 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 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_CHILD_SCHEDULER_WORKER_SCHEDULER_H_
6 #define CONTENT_CHILD_SCHEDULER_WORKER_SCHEDULER_H_
7
8 #include "base/message_loop/message_loop.h"
9 #include "content/child/scheduler/child_scheduler.h"
10 #include "content/child/scheduler/single_thread_idle_task_runner.h"
11 #include "content/common/content_export.h"
12
13 namespace base {
14 class MessageLoop;
15 }
16
17 namespace content {
18
19 class CONTENT_EXPORT WorkerScheduler : public ChildScheduler {
20 public:
21 ~WorkerScheduler() override;
22 static scoped_ptr<WorkerScheduler> Create(base::MessageLoop* message_loop);
23
24 // Must be called before the scheduler can be used. Does any post construction
25 // initialization needed such as initializing idle period detection.
26 virtual void Init() = 0;
27
28 protected:
29 WorkerScheduler();
30 DISALLOW_COPY_AND_ASSIGN(WorkerScheduler);
31 };
32
33 } // namespace content
34
35 #endif // CONTENT_CHILD_SCHEDULER_WORKER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « content/child/scheduler/webthread_impl_for_worker_scheduler_unittest.cc ('k') | content/child/scheduler/worker_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698