| 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 <memory> |
| 8 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 9 #include "core/dom/ContextLifecycleObserver.h" | 10 #include "core/dom/ContextLifecycleObserver.h" |
| 10 #include "core/dom/TaskRunnerHelper.h" | 11 #include "core/dom/TaskRunnerHelper.h" |
| 11 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
| 12 #include "wtf/Allocator.h" | 13 #include "wtf/Allocator.h" |
| 13 #include "wtf/Noncopyable.h" | 14 #include "wtf/Noncopyable.h" |
| 14 #include "wtf/PtrUtil.h" | 15 #include "wtf/PtrUtil.h" |
| 15 #include <memory> | |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class LocalFrame; | 19 class LocalFrame; |
| 20 class WebTaskRunner; | 20 class WebTaskRunner; |
| 21 | 21 |
| 22 // Represents a set of task runners of the parent (or associated) document's | 22 // Represents a set of task runners of the parent (or associated) document's |
| 23 // frame. This could be accessed from worker thread(s) and must be initialized | 23 // frame. This could be accessed from worker thread(s) and must be initialized |
| 24 // on the parent context thread (i.e. MainThread) on construction time, rather | 24 // on the parent context thread (i.e. MainThread) on construction time, rather |
| 25 // than being done lazily. | 25 // than being done lazily. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 54 | 54 |
| 55 void contextDestroyed(ExecutionContext*) 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 |