| 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 "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 |
| OLD | NEW |