| 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 ParentFrameTaskRunners_h | 5 #ifndef ParentFrameTaskRunners_h |
| 6 #define ParentFrameTaskRunners_h | 6 #define ParentFrameTaskRunners_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
| 10 #include "core/dom/TaskRunnerHelper.h" | 10 #include "core/dom/TaskRunnerHelper.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 private: | 45 private: |
| 46 using TaskRunnerHashMap = HashMap<TaskType, | 46 using TaskRunnerHashMap = HashMap<TaskType, |
| 47 RefPtr<WebTaskRunner>, | 47 RefPtr<WebTaskRunner>, |
| 48 WTF::IntHash<TaskType>, | 48 WTF::IntHash<TaskType>, |
| 49 TaskTypeTraits>; | 49 TaskTypeTraits>; |
| 50 | 50 |
| 51 // LocalFrame could be nullptr if the worker is not associated with a | 51 // LocalFrame could be nullptr if the worker is not associated with a |
| 52 // particular local frame. | 52 // particular local frame. |
| 53 explicit ParentFrameTaskRunners(LocalFrame*); | 53 explicit ParentFrameTaskRunners(LocalFrame*); |
| 54 | 54 |
| 55 void contextDestroyed() override; | 55 void contextDestroyed(ExecutionContext*) override; |
| 56 | 56 |
| 57 Mutex m_taskRunnersMutex; | 57 Mutex m_taskRunnersMutex; |
| 58 TaskRunnerHashMap m_taskRunners; | 58 TaskRunnerHashMap m_taskRunners; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace blink | 61 } // namespace blink |
| 62 | 62 |
| 63 #endif // ParentFrameTaskRunners_h | 63 #endif // ParentFrameTaskRunners_h |
| OLD | NEW |