| 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 "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 9 | 10 |
| 10 namespace blink { | 11 namespace blink { |
| 11 | 12 |
| 12 class Document; | 13 class Document; |
| 13 class ExecutionContext; | 14 class ExecutionContext; |
| 14 class LocalFrame; | 15 class LocalFrame; |
| 15 class ScriptState; | 16 class ScriptState; |
| 16 class WebTaskRunner; | 17 class WebTaskRunner; |
| 17 | 18 |
| 18 class TaskRunnerHelper final { | 19 class CORE_EXPORT TaskRunnerHelper final { |
| 19 STATIC_ONLY(TaskRunnerHelper); | 20 STATIC_ONLY(TaskRunnerHelper); |
| 20 public: | 21 public: |
| 21 static WebTaskRunner* getUnthrottledTaskRunner(LocalFrame*); | 22 static WebTaskRunner* getUnthrottledTaskRunner(LocalFrame*); |
| 22 static WebTaskRunner* getTimerTaskRunner(LocalFrame*); | 23 static WebTaskRunner* getTimerTaskRunner(LocalFrame*); |
| 23 static WebTaskRunner* getLoadingTaskRunner(LocalFrame*); | 24 static WebTaskRunner* getLoadingTaskRunner(LocalFrame*); |
| 24 static WebTaskRunner* getUnthrottledTaskRunner(Document*); | 25 static WebTaskRunner* getUnthrottledTaskRunner(Document*); |
| 25 static WebTaskRunner* getTimerTaskRunner(Document*); | 26 static WebTaskRunner* getTimerTaskRunner(Document*); |
| 26 static WebTaskRunner* getLoadingTaskRunner(Document*); | 27 static WebTaskRunner* getLoadingTaskRunner(Document*); |
| 27 static WebTaskRunner* getUnthrottledTaskRunner(ExecutionContext*); | 28 static WebTaskRunner* getUnthrottledTaskRunner(ExecutionContext*); |
| 28 static WebTaskRunner* getUnthrottledTaskRunner(ScriptState*); | 29 static WebTaskRunner* getUnthrottledTaskRunner(ScriptState*); |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 } // namespace blink | 32 } // namespace blink |
| 32 | 33 |
| 33 #endif | 34 #endif |
| OLD | NEW |