Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Side by Side Diff: third_party/WebKit/Source/core/dom/TaskRunnerHelper.h

Issue 2587723002: Specify TaskType of posted Task explicitly in Presentation API (10) (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 17 matching lines...) Expand all
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 DatabaseAccess,
38 Presentation,
38 39
39 // Other internal tasks that cannot fit any of the above task runners 40 // Other internal tasks that cannot fit any of the above task runners
40 // can be posted here, but the usage is not encouraged. The task runner 41 // can be posted here, but the usage is not encouraged. The task runner
41 // may be throttled. 42 // may be throttled.
42 Internal, 43 Internal,
43 44
44 // Tasks that must not be throttled should be posted here, but the usage 45 // Tasks that must not be throttled should be posted here, but the usage
45 // should be very limited. 46 // should be very limited.
46 Unthrottled, 47 Unthrottled,
47 48
(...skipping 20 matching lines...) Expand all
68 public: 69 public:
69 static WebTaskRunner* get(TaskType, LocalFrame*); 70 static WebTaskRunner* get(TaskType, LocalFrame*);
70 static WebTaskRunner* get(TaskType, Document*); 71 static WebTaskRunner* get(TaskType, Document*);
71 static WebTaskRunner* get(TaskType, ExecutionContext*); 72 static WebTaskRunner* get(TaskType, ExecutionContext*);
72 static WebTaskRunner* get(TaskType, ScriptState*); 73 static WebTaskRunner* get(TaskType, ScriptState*);
73 }; 74 };
74 75
75 } // namespace blink 76 } // namespace blink
76 77
77 #endif 78 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698