Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScope.h

Issue 2793593002: AudioWorklet prototype
Patch Set: Rebase after ThreadedWorkletMessaginProxy change Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698