| 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 "platform/wtf/Allocator.h" |
| 10 #include "wtf/HashTraits.h" | 10 #include "platform/wtf/HashTraits.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class Document; | 14 class Document; |
| 15 class ExecutionContext; | 15 class ExecutionContext; |
| 16 class LocalFrame; | 16 class LocalFrame; |
| 17 class ScriptState; | 17 class ScriptState; |
| 18 class WebTaskRunner; | 18 class WebTaskRunner; |
| 19 | 19 |
| 20 enum class TaskType : unsigned { | 20 enum class TaskType : unsigned { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 public: | 144 public: |
| 145 static RefPtr<WebTaskRunner> Get(TaskType, LocalFrame*); | 145 static RefPtr<WebTaskRunner> Get(TaskType, LocalFrame*); |
| 146 static RefPtr<WebTaskRunner> Get(TaskType, Document*); | 146 static RefPtr<WebTaskRunner> Get(TaskType, Document*); |
| 147 static RefPtr<WebTaskRunner> Get(TaskType, ExecutionContext*); | 147 static RefPtr<WebTaskRunner> Get(TaskType, ExecutionContext*); |
| 148 static RefPtr<WebTaskRunner> Get(TaskType, ScriptState*); | 148 static RefPtr<WebTaskRunner> Get(TaskType, ScriptState*); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| 152 | 152 |
| 153 #endif | 153 #endif |
| OLD | NEW |