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

Side by Side Diff: content/renderer/scheduler/web_scheduler_impl.h

Issue 985813002: Experimental: Remove chromium shared timers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More tests Created 5 years, 9 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_
6 #define CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_ 6 #define CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 15 matching lines...) Expand all
26 WebSchedulerImpl(RendererScheduler* renderer_scheduler); 26 WebSchedulerImpl(RendererScheduler* renderer_scheduler);
27 ~WebSchedulerImpl() override; 27 ~WebSchedulerImpl() override;
28 28
29 virtual bool shouldYieldForHighPriorityWork(); 29 virtual bool shouldYieldForHighPriorityWork();
30 virtual void postIdleTask(const blink::WebTraceLocation& location, 30 virtual void postIdleTask(const blink::WebTraceLocation& location,
31 blink::WebScheduler::IdleTask* task); 31 blink::WebScheduler::IdleTask* task);
32 virtual void postIdleTaskAfterWakeup(const blink::WebTraceLocation& location, 32 virtual void postIdleTaskAfterWakeup(const blink::WebTraceLocation& location,
33 blink::WebScheduler::IdleTask* task); 33 blink::WebScheduler::IdleTask* task);
34 virtual void postLoadingTask(const blink::WebTraceLocation& location, 34 virtual void postLoadingTask(const blink::WebTraceLocation& location,
35 blink::WebThread::Task* task); 35 blink::WebThread::Task* task);
36 virtual void postTimerTask(const blink::WebTraceLocation& location,
37 blink::WebThread::Task* task,
38 long long delayMs);
36 virtual void shutdown(); 39 virtual void shutdown();
37 40
38 private: 41 private:
39 static void runIdleTask(scoped_ptr<blink::WebScheduler::IdleTask> task, 42 static void runIdleTask(scoped_ptr<blink::WebScheduler::IdleTask> task,
40 base::TimeTicks deadline); 43 base::TimeTicks deadline);
41 static void runTask(scoped_ptr<blink::WebThread::Task> task); 44 static void runTask(scoped_ptr<blink::WebThread::Task> task);
42 45
43 RendererScheduler* renderer_scheduler_; 46 RendererScheduler* renderer_scheduler_;
44 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_; 47 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_;
45 scoped_refptr<base::SingleThreadTaskRunner> loading_task_runner_; 48 scoped_refptr<base::SingleThreadTaskRunner> loading_task_runner_;
49 scoped_refptr<base::SingleThreadTaskRunner> timer_task_runner_;
46 }; 50 };
47 51
48 } // namespace content 52 } // namespace content
49 53
50 #endif // CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_ 54 #endif // CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/scheduler/task_queue_selector.h ('k') | content/renderer/scheduler/web_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698