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

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

Issue 2583013002: Specify TaskType of posted Task explicitly in Quota API (13) (Closed)
Patch Set: rebase Created 3 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 | third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 1c217c873d4b935568220a6db1c3927c8789be3d..5b09db5f41ec607b29b81e1aacc53da47faa9dca 100644
--- a/third_party/WebKit/Source/core/dom/TaskRunnerHelper.h
+++ b/third_party/WebKit/Source/core/dom/TaskRunnerHelper.h
@@ -38,6 +38,13 @@ enum class TaskType : unsigned {
Presentation,
Sensor,
+ // Use MiscPlatformAPI for a task that is defined in the spec but is not yet
+ // associated with any specific task runner in the spec. MiscPlatformAPI is
+ // not encouraged for stable and matured APIs. The spec should define the task
+ // runner explicitly.
+ // The task runner may be throttled.
+ MiscPlatformAPI,
+
// Other internal tasks that cannot fit any of the above task runners
// can be posted here, but the usage is not encouraged. The task runner
// may be throttled.
@@ -68,6 +75,9 @@ struct TaskTypeTraits : WTF::GenericHashTraits<TaskType> {
}
};
+// A set of helper functions to get a WebTaskRunner for TaskType and a context
+// object. The posted tasks are guaranteed to run in a sequence if they have the
+// same TaskType and the context objects belong to the same frame.
class CORE_EXPORT TaskRunnerHelper final {
STATIC_ONLY(TaskRunnerHelper);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698