| 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 16 matching lines...) Expand all Loading... |
| 27 Embed, | 27 Embed, |
| 28 MediaElementEvent, | 28 MediaElementEvent, |
| 29 CanvasBlobSerialization, | 29 CanvasBlobSerialization, |
| 30 Microtask, | 30 Microtask, |
| 31 Timer, | 31 Timer, |
| 32 RemoteEvent, | 32 RemoteEvent, |
| 33 WebSocket, | 33 WebSocket, |
| 34 PostedMessage, | 34 PostedMessage, |
| 35 UnshippedPortMessage, | 35 UnshippedPortMessage, |
| 36 FileReading, | 36 FileReading, |
| 37 DatabaseAccess, |
| 37 | 38 |
| 38 // Other internal tasks that cannot fit any of the above task runners | 39 // Other internal tasks that cannot fit any of the above task runners |
| 39 // can be posted here, but the usage is not encouraged. The task runner | 40 // can be posted here, but the usage is not encouraged. The task runner |
| 40 // may be throttled. | 41 // may be throttled. |
| 41 Internal, | 42 Internal, |
| 42 | 43 |
| 43 // Tasks that must not be throttled should be posted here, but the usage | 44 // Tasks that must not be throttled should be posted here, but the usage |
| 44 // should be very limited. | 45 // should be very limited. |
| 45 Unthrottled, | 46 Unthrottled, |
| 46 | 47 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 67 public: | 68 public: |
| 68 static WebTaskRunner* get(TaskType, LocalFrame*); | 69 static WebTaskRunner* get(TaskType, LocalFrame*); |
| 69 static WebTaskRunner* get(TaskType, Document*); | 70 static WebTaskRunner* get(TaskType, Document*); |
| 70 static WebTaskRunner* get(TaskType, ExecutionContext*); | 71 static WebTaskRunner* get(TaskType, ExecutionContext*); |
| 71 static WebTaskRunner* get(TaskType, ScriptState*); | 72 static WebTaskRunner* get(TaskType, ScriptState*); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace blink | 75 } // namespace blink |
| 75 | 76 |
| 76 #endif | 77 #endif |
| OLD | NEW |