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 19 matching lines...) Expand all Loading... | |
| 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 DatabaseAccess, |
| 38 Presentation, | 38 Presentation, |
| 39 Sensor, | 39 Sensor, |
| 40 MiscPlatformAPI, | |
|
haraken
2017/01/05 04:32:45
Add a comment like:
// Use MiscPlatformAPI for a
tzik
2017/01/05 05:20:28
Done.
| |
| 40 | 41 |
| 41 // Other internal tasks that cannot fit any of the above task runners | 42 // Other internal tasks that cannot fit any of the above task runners |
| 42 // can be posted here, but the usage is not encouraged. The task runner | 43 // can be posted here, but the usage is not encouraged. The task runner |
| 43 // may be throttled. | 44 // may be throttled. |
| 44 // | 45 // |
| 45 // UnspecedLoading type should be used for all tasks associated with | 46 // UnspecedLoading type should be used for all tasks associated with |
| 46 // loading page content, UnspecedTimer should be used for all other purposes. | 47 // loading page content, UnspecedTimer should be used for all other purposes. |
| 47 UnspecedTimer, | 48 UnspecedTimer, |
| 48 UnspecedLoading, | 49 UnspecedLoading, |
| 49 | 50 |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 74 public: | 75 public: |
| 75 static WebTaskRunner* get(TaskType, LocalFrame*); | 76 static WebTaskRunner* get(TaskType, LocalFrame*); |
| 76 static WebTaskRunner* get(TaskType, Document*); | 77 static WebTaskRunner* get(TaskType, Document*); |
| 77 static WebTaskRunner* get(TaskType, ExecutionContext*); | 78 static WebTaskRunner* get(TaskType, ExecutionContext*); |
| 78 static WebTaskRunner* get(TaskType, ScriptState*); | 79 static WebTaskRunner* get(TaskType, ScriptState*); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace blink | 82 } // namespace blink |
| 82 | 83 |
| 83 #endif | 84 #endif |
| OLD | NEW |