Chromium Code Reviews| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 | 98 // https://w3c.github.io/performance-timeline/#performance-timeline |
| 99 PerformanceTimeline, | 99 PerformanceTimeline, |
| 100 | 100 |
| 101 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.15 | |
|
haraken
2017/01/31 02:24:35
// This task source is used for all tasks in the W
Kai Ninomiya
2017/01/31 02:28:44
Done.
| |
| 102 WebGL, | |
| 103 | |
| 101 // Use MiscPlatformAPI for a task that is defined in the spec but is not yet | 104 // Use MiscPlatformAPI for a task that is defined in the spec but is not yet |
| 102 // associated with any specific task runner in the spec. MiscPlatformAPI is | 105 // associated with any specific task runner in the spec. MiscPlatformAPI is |
| 103 // not encouraged for stable and matured APIs. The spec should define the task | 106 // not encouraged for stable and matured APIs. The spec should define the task |
| 104 // runner explicitly. | 107 // runner explicitly. |
| 105 // The task runner may be throttled. | 108 // The task runner may be throttled. |
| 106 MiscPlatformAPI, | 109 MiscPlatformAPI, |
| 107 | 110 |
| 108 // Other internal tasks that cannot fit any of the above task runners | 111 // Other internal tasks that cannot fit any of the above task runners |
| 109 // can be posted here, but the usage is not encouraged. The task runner | 112 // can be posted here, but the usage is not encouraged. The task runner |
| 110 // may be throttled. | 113 // may be throttled. |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 140 public: | 143 public: |
| 141 static RefPtr<WebTaskRunner> get(TaskType, LocalFrame*); | 144 static RefPtr<WebTaskRunner> get(TaskType, LocalFrame*); |
| 142 static RefPtr<WebTaskRunner> get(TaskType, Document*); | 145 static RefPtr<WebTaskRunner> get(TaskType, Document*); |
| 143 static RefPtr<WebTaskRunner> get(TaskType, ExecutionContext*); | 146 static RefPtr<WebTaskRunner> get(TaskType, ExecutionContext*); |
| 144 static RefPtr<WebTaskRunner> get(TaskType, ScriptState*); | 147 static RefPtr<WebTaskRunner> get(TaskType, ScriptState*); |
| 145 }; | 148 }; |
| 146 | 149 |
| 147 } // namespace blink | 150 } // namespace blink |
| 148 | 151 |
| 149 #endif | 152 #endif |
| OLD | NEW |