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

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

Issue 664963002: content: Add RendererScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove RendererSchedulerSelector which is now in https://codereview.chromium.org/657953004/ Created 6 years, 2 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 2014 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_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_
6 #define CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_
7
8 #include "third_party/WebKit/public/platform/WebScheduler.h"
9
10 namespace content {
11
12 class RendererScheduler;
13
14 class WebSchedulerImpl : public blink::WebScheduler {
15 public:
16 WebSchedulerImpl(RendererScheduler* renderer_scheduler);
17 virtual ~WebSchedulerImpl();
18
19 virtual bool shouldYieldForHighPriorityWork();
Sami 2014/10/27 12:02:38 We need to add |shutdown| here too.
rmcilroy 2014/10/27 16:25:01 Done.
20 virtual void postIdleTask(const blink::WebTraceLocation& location,
21 blink::WebScheduler::IdleTask* task);
22
23 private:
24 RendererScheduler* renderer_scheduler_;
25 };
26
27 } // namespace content
28
29 #endif // CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698