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 23 matching lines...) Expand all Loading... |
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 | 40 |
41 // Other internal tasks that cannot fit any of the above task runners | 41 // 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 | 42 // can be posted here, but the usage is not encouraged. The task runner |
43 // may be throttled. | 43 // may be throttled. |
44 Internal, | 44 // |
| 45 // UnspecedLoading type should be used for all tasks associated with |
| 46 // loading page content, UnspecedTimer should be used for all other purposes. |
| 47 UnspecedTimer, |
| 48 UnspecedLoading, |
45 | 49 |
46 // Tasks that must not be throttled should be posted here, but the usage | 50 // Tasks that must not be throttled should be posted here, but the usage |
47 // should be very limited. | 51 // should be very limited. |
48 Unthrottled, | 52 Unthrottled, |
49 | 53 |
50 // Tasks that any other TaskType is not assigned to. This should be | 54 // Tasks that any other TaskType is not assigned to. This should be |
51 // transitional and should be removed. | 55 // transitional and should be removed. |
52 Unspecified, | 56 Unspecified, |
53 }; | 57 }; |
54 | 58 |
(...skipping 15 matching lines...) Expand all Loading... |
70 public: | 74 public: |
71 static WebTaskRunner* get(TaskType, LocalFrame*); | 75 static WebTaskRunner* get(TaskType, LocalFrame*); |
72 static WebTaskRunner* get(TaskType, Document*); | 76 static WebTaskRunner* get(TaskType, Document*); |
73 static WebTaskRunner* get(TaskType, ExecutionContext*); | 77 static WebTaskRunner* get(TaskType, ExecutionContext*); |
74 static WebTaskRunner* get(TaskType, ScriptState*); | 78 static WebTaskRunner* get(TaskType, ScriptState*); |
75 }; | 79 }; |
76 | 80 |
77 } // namespace blink | 81 } // namespace blink |
78 | 82 |
79 #endif | 83 #endif |
OLD | NEW |