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

Unified Diff: third_party/WebKit/Source/core/dom/TaskRunnerHelper.h

Issue 2141873002: Add helper functions to get per-frame task runners (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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
Index: third_party/WebKit/Source/core/dom/TaskRunnerHelper.h
diff --git a/third_party/WebKit/Source/core/dom/TaskRunnerHelper.h b/third_party/WebKit/Source/core/dom/TaskRunnerHelper.h
new file mode 100644
index 0000000000000000000000000000000000000000..d3a5b19f21124188145988dc08c682a48977e07d
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/TaskRunnerHelper.h
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef TaskRunnerHelper_h
+#define TaskRunnerHelper_h
+
+#include "wtf/Allocator.h"
+
+namespace blink {
+
+class Document;
+class LocalFrame;
+class WebTaskRunner;
+
+class TaskRunnerHelper final {
+ STATIC_ONLY(TaskRunnerHelper);
+public:
+ static WebTaskRunner* getUnthrottledTaskRunner(LocalFrame*);
+ static WebTaskRunner* getTimerTaskRunner(LocalFrame*);
+ static WebTaskRunner* getLoadingTaskRunner(LocalFrame*);
+ static WebTaskRunner* getUnthrottledTaskRunner(Document*);
+ static WebTaskRunner* getTimerTaskRunner(Document*);
+ static WebTaskRunner* getLoadingTaskRunner(Document*);
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698