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

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

Issue 2638403003: Add spec links and more descriptions of the different task types. (Closed)
Patch Set: 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 | no next file » | 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 0ca15474dfc6083ea8782ceea86e02ed3b156a2e..37710d056a9094c89e2243a23c37bac35b93fd18 100644
--- a/third_party/WebKit/Source/core/dom/TaskRunnerHelper.h
+++ b/third_party/WebKit/Source/core/dom/TaskRunnerHelper.h
@@ -20,22 +20,79 @@ class WebTaskRunner;
enum class TaskType : unsigned {
// Speced tasks and related internal tasks should be posted to one of
// the following task runners. These task runners may be throttled.
+
+ // https://html.spec.whatwg.org/multipage/webappapis.html#generic-task-sources
+ //
+ // This task source is used for features that react to DOM manipulations, such
+ // as things that happen in a non-blocking fashion when an element is inserted
+ // into the document.
DOMManipulation,
+ // This task source is used for features that react to user interaction, for
+ // example keyboard or mouse input. Events sent in response to user input
+ // (e.g. click events) must be fired using tasks queued with the user
+ // interaction task source.
UserInteraction,
+ // This task source is used for features that trigger in response to network
+ // activity.
Networking,
+ // This task source is used to queue calls to history.back() and similar APIs.
HistoryTraversal,
+
+ // https://html.spec.whatwg.org/multipage/embedded-content.html#the-embed-element
+ // This task source is used for the embed element setup steps.
Embed,
+
+ // https://html.spec.whatwg.org/multipage/embedded-content.html#media-elements
+ // This task source is used for all tasks queued in the [Media elements]
+ // section and subsections of the spec unless explicitly specified otherwise.
MediaElementEvent,
+
+ // https://html.spec.whatwg.org/multipage/scripting.html#the-canvas-element
+ // This task source is used to invoke the result callback of
+ // HTMLCanvasElement.toBlob().
CanvasBlobSerialization,
+
+ // https://html.spec.whatwg.org/multipage/webappapis.html#event-loop-processing-model
+ // This task source is used when an algorithm requires a microtask to be
+ // queued.
Microtask,
+
+ // https://html.spec.whatwg.org/multipage/webappapis.html#timers
+ // This task source is used to queue tasks queued by setInterval() and similar
+ // APIs.
Timer,
+
+ // https://html.spec.whatwg.org/multipage/comms.html#sse-processing-model
+ // This task source is used for any tasks that are queued by EventSource
+ // objects.
RemoteEvent,
+
+ // https://html.spec.whatwg.org/multipage/comms.html#feedback-from-the-protocol
+ // The task source for all tasks queued in the [WebSocket] section of the
+ // spec.
WebSocket,
+
+ // https://html.spec.whatwg.org/multipage/comms.html#web-messaging
+ // This task source is used for the tasks in cross-document messaging.
PostedMessage,
+
+ // https://html.spec.whatwg.org/multipage/comms.html#message-ports
UnshippedPortMessage,
+
+ // https://www.w3.org/TR/FileAPI/#blobreader-task-source
+ // This task source is used for all tasks queued in the FileAPI spec to read
+ // byte sequences associated with Blob and File objects.
FileReading,
+
+ // https://www.w3.org/TR/IndexedDB/#request-api
DatabaseAccess,
+
+ // https://w3c.github.io/presentation-api/#common-idioms
+ // This task source is used for all tasks in the Presentation API spec.
Presentation,
+
+ // https://www.w3.org/TR/2016/WD-generic-sensor-20160830/#sensor-task-source
+ // This task source is used for all tasks in the Sensor API spec.
Sensor,
// Use MiscPlatformAPI for a task that is defined in the spec but is not yet
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698