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

Unified Diff: content/renderer/scheduler/web_scheduler_impl.h

Issue 854053003: Adds support for loading tasks in WebSchedulerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a #include Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/scheduler/web_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/scheduler/web_scheduler_impl.h
diff --git a/content/renderer/scheduler/web_scheduler_impl.h b/content/renderer/scheduler/web_scheduler_impl.h
index 98bdaafc4dd560c79230ec8239f21a76b76af68f..dc31c0cce132f182eff15c37dff3228da31fcf71 100644
--- a/content/renderer/scheduler/web_scheduler_impl.h
+++ b/content/renderer/scheduler/web_scheduler_impl.h
@@ -9,6 +9,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "third_party/WebKit/public/platform/WebScheduler.h"
+#include "third_party/WebKit/public/platform/WebThread.h"
namespace content {
@@ -23,11 +24,14 @@ class WebSchedulerImpl : public blink::WebScheduler {
virtual bool shouldYieldForHighPriorityWork();
virtual void postIdleTask(const blink::WebTraceLocation& location,
blink::WebScheduler::IdleTask* task);
+ virtual void postLoadingTask(const blink::WebTraceLocation& location,
+ blink::WebThread::Task* task);
virtual void shutdown();
private:
static void runIdleTask(scoped_ptr<blink::WebScheduler::IdleTask> task,
base::TimeTicks deadline);
+ static void runTask(scoped_ptr<blink::WebThread::Task> task);
RendererScheduler* renderer_scheduler_;
scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_;
« no previous file with comments | « no previous file | content/renderer/scheduler/web_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698