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

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

Issue 2178263002: Add ExecutionContext and ScriptState support to blink::TaskRunnerHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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 "wtf/Allocator.h" 8 #include "wtf/Allocator.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class Document; 12 class Document;
13 class ExecutionContext;
13 class LocalFrame; 14 class LocalFrame;
15 class ScriptState;
14 class WebTaskRunner; 16 class WebTaskRunner;
15 17
16 class TaskRunnerHelper final { 18 class TaskRunnerHelper final {
17 STATIC_ONLY(TaskRunnerHelper); 19 STATIC_ONLY(TaskRunnerHelper);
18 public: 20 public:
19 static WebTaskRunner* getUnthrottledTaskRunner(LocalFrame*); 21 static WebTaskRunner* getUnthrottledTaskRunner(LocalFrame*);
20 static WebTaskRunner* getTimerTaskRunner(LocalFrame*); 22 static WebTaskRunner* getTimerTaskRunner(LocalFrame*);
21 static WebTaskRunner* getLoadingTaskRunner(LocalFrame*); 23 static WebTaskRunner* getLoadingTaskRunner(LocalFrame*);
22 static WebTaskRunner* getUnthrottledTaskRunner(Document*); 24 static WebTaskRunner* getUnthrottledTaskRunner(Document*);
23 static WebTaskRunner* getTimerTaskRunner(Document*); 25 static WebTaskRunner* getTimerTaskRunner(Document*);
24 static WebTaskRunner* getLoadingTaskRunner(Document*); 26 static WebTaskRunner* getLoadingTaskRunner(Document*);
27 static WebTaskRunner* getUnthrottledTaskRunner(ExecutionContext*);
28 static WebTaskRunner* getUnthrottledTaskRunner(ScriptState*);
25 }; 29 };
26 30
27 } // namespace blink 31 } // namespace blink
28 32
29 #endif 33 #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