OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef TaskRunnerHelper_h | 5 #ifndef TaskRunnerHelper_h |
6 #define TaskRunnerHelper_h | 6 #define TaskRunnerHelper_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
10 #include "wtf/HashTraits.h" | 10 #include "wtf/HashTraits.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 DatabaseAccess, | 88 DatabaseAccess, |
89 | 89 |
90 // https://w3c.github.io/presentation-api/#common-idioms | 90 // https://w3c.github.io/presentation-api/#common-idioms |
91 // This task source is used for all tasks in the Presentation API spec. | 91 // This task source is used for all tasks in the Presentation API spec. |
92 Presentation, | 92 Presentation, |
93 | 93 |
94 // https://www.w3.org/TR/2016/WD-generic-sensor-20160830/#sensor-task-source | 94 // https://www.w3.org/TR/2016/WD-generic-sensor-20160830/#sensor-task-source |
95 // This task source is used for all tasks in the Sensor API spec. | 95 // This task source is used for all tasks in the Sensor API spec. |
96 Sensor, | 96 Sensor, |
97 | 97 |
| 98 // https://w3c.github.io/performance-timeline/#performance-timeline |
| 99 PerformanceTimeline, |
| 100 |
98 // Use MiscPlatformAPI for a task that is defined in the spec but is not yet | 101 // Use MiscPlatformAPI for a task that is defined in the spec but is not yet |
99 // associated with any specific task runner in the spec. MiscPlatformAPI is | 102 // associated with any specific task runner in the spec. MiscPlatformAPI is |
100 // not encouraged for stable and matured APIs. The spec should define the task | 103 // not encouraged for stable and matured APIs. The spec should define the task |
101 // runner explicitly. | 104 // runner explicitly. |
102 // The task runner may be throttled. | 105 // The task runner may be throttled. |
103 MiscPlatformAPI, | 106 MiscPlatformAPI, |
104 | 107 |
105 // Other internal tasks that cannot fit any of the above task runners | 108 // Other internal tasks that cannot fit any of the above task runners |
106 // can be posted here, but the usage is not encouraged. The task runner | 109 // can be posted here, but the usage is not encouraged. The task runner |
107 // may be throttled. | 110 // may be throttled. |
(...skipping 29 matching lines...) Expand all Loading... |
137 public: | 140 public: |
138 static RefPtr<WebTaskRunner> get(TaskType, LocalFrame*); | 141 static RefPtr<WebTaskRunner> get(TaskType, LocalFrame*); |
139 static RefPtr<WebTaskRunner> get(TaskType, Document*); | 142 static RefPtr<WebTaskRunner> get(TaskType, Document*); |
140 static RefPtr<WebTaskRunner> get(TaskType, ExecutionContext*); | 143 static RefPtr<WebTaskRunner> get(TaskType, ExecutionContext*); |
141 static RefPtr<WebTaskRunner> get(TaskType, ScriptState*); | 144 static RefPtr<WebTaskRunner> get(TaskType, ScriptState*); |
142 }; | 145 }; |
143 | 146 |
144 } // namespace blink | 147 } // namespace blink |
145 | 148 |
146 #endif | 149 #endif |
OLD | NEW |