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 WorkletGlobalScope_h | 5 #ifndef WorkletGlobalScope_h |
6 #define WorkletGlobalScope_h | 6 #define WorkletGlobalScope_h |
7 | 7 |
| 8 #include <memory> |
8 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
10 #include "core/dom/ExecutionContext.h" | 11 #include "core/dom/ExecutionContext.h" |
11 #include "core/dom/SecurityContext.h" | 12 #include "core/dom/SecurityContext.h" |
12 #include "core/inspector/ConsoleMessage.h" | 13 #include "core/inspector/ConsoleMessage.h" |
13 #include "core/workers/WorkerOrWorkletGlobalScope.h" | 14 #include "core/workers/WorkerOrWorkletGlobalScope.h" |
14 #include "platform/heap/Handle.h" | 15 #include "platform/heap/Handle.h" |
15 #include <memory> | |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 | 18 |
19 class EventQueue; | 19 class EventQueue; |
20 class WorkerOrWorkletScriptController; | 20 class WorkerOrWorkletScriptController; |
21 | 21 |
22 class CORE_EXPORT WorkletGlobalScope | 22 class CORE_EXPORT WorkletGlobalScope |
23 : public GarbageCollectedFinalized<WorkletGlobalScope>, | 23 : public GarbageCollectedFinalized<WorkletGlobalScope>, |
24 public SecurityContext, | 24 public SecurityContext, |
25 public WorkerOrWorkletGlobalScope, | 25 public WorkerOrWorkletGlobalScope, |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 DEFINE_TYPE_CASTS(WorkletGlobalScope, | 99 DEFINE_TYPE_CASTS(WorkletGlobalScope, |
100 ExecutionContext, | 100 ExecutionContext, |
101 context, | 101 context, |
102 context->isWorkletGlobalScope(), | 102 context->isWorkletGlobalScope(), |
103 context.isWorkletGlobalScope()); | 103 context.isWorkletGlobalScope()); |
104 | 104 |
105 } // namespace blink | 105 } // namespace blink |
106 | 106 |
107 #endif // WorkletGlobalScope_h | 107 #endif // WorkletGlobalScope_h |
OLD | NEW |