| 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 AudioWorkletGlobalScope_h | 5 #ifndef AudioWorkletGlobalScope_h |
| 6 #define AudioWorkletGlobalScope_h | 6 #define AudioWorkletGlobalScope_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptValue.h" | 8 #include "bindings/core/v8/ScriptValue.h" |
| 9 #include "core/dom/ExecutionContext.h" | 9 #include "core/dom/ExecutionContext.h" |
| 10 #include "core/workers/ThreadedWorkletGlobalScope.h" | 10 #include "core/workers/ThreadedWorkletGlobalScope.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 WorkerClients*); | 61 WorkerClients*); |
| 62 | 62 |
| 63 typedef HeapHashMap<String, Member<AudioWorkletProcessorDefinition>> | 63 typedef HeapHashMap<String, Member<AudioWorkletProcessorDefinition>> |
| 64 ProcessorDefinitionMap; | 64 ProcessorDefinitionMap; |
| 65 typedef HeapVector<Member<AudioWorkletProcessor>> ProcessorInstances; | 65 typedef HeapVector<Member<AudioWorkletProcessor>> ProcessorInstances; |
| 66 | 66 |
| 67 ProcessorDefinitionMap processor_definition_map_; | 67 ProcessorDefinitionMap processor_definition_map_; |
| 68 ProcessorInstances processor_instances_; | 68 ProcessorInstances processor_instances_; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 DEFINE_TYPE_CASTS(AudioWorkletGlobalScope, |
| 72 ExecutionContext, |
| 73 context, |
| 74 context->IsAudioWorkletGlobalScope(), |
| 75 context.IsAudioWorkletGlobalScope()); |
| 76 |
| 71 } // namespace blink | 77 } // namespace blink |
| 72 | 78 |
| 73 #endif // AudioWorkletGlobalScope_h | 79 #endif // AudioWorkletGlobalScope_h |
| OLD | NEW |