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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScope.h

Issue 2903703003: Use wrapper tracing for worklets. (Closed)
Patch Set: Separating in two CLs Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScope.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScope.h b/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScope.h
index e22a252d483d4bbf1a8cbeed073929e6c43a384c..e6626aff8e8811194f0166ef3409e38140ef9b56 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScope.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScope.h
@@ -9,6 +9,7 @@
#include "core/dom/ExecutionContext.h"
#include "core/workers/ThreadedWorkletGlobalScope.h"
#include "modules/ModulesExport.h"
+#include "platform/bindings/ScriptWrappable.h"
namespace blink {
@@ -30,7 +31,6 @@ class MODULES_EXPORT AudioWorkletGlobalScope final
v8::Isolate*,
WorkerThread*);
~AudioWorkletGlobalScope() override;
- void Dispose() final;
bool IsAudioWorkletGlobalScope() const final { return true; }
void registerProcessor(const String& name,
const ScriptValue& class_definition,
@@ -50,6 +50,7 @@ class MODULES_EXPORT AudioWorkletGlobalScope final
AudioWorkletProcessorDefinition* FindDefinition(const String& name);
DECLARE_TRACE();
+ DECLARE_TRACE_WRAPPERS();
private:
AudioWorkletGlobalScope(const KURL&,
@@ -58,9 +59,11 @@ class MODULES_EXPORT AudioWorkletGlobalScope final
v8::Isolate*,
WorkerThread*);
- typedef HeapHashMap<String, Member<AudioWorkletProcessorDefinition>>
+ typedef HeapHashMap<String,
+ TraceWrapperMember<AudioWorkletProcessorDefinition>>
ProcessorDefinitionMap;
- typedef HeapVector<Member<AudioWorkletProcessor>> ProcessorInstances;
+ typedef HeapVector<TraceWrapperMember<AudioWorkletProcessor>>
+ ProcessorInstances;
ProcessorDefinitionMap processor_definition_map_;
ProcessorInstances processor_instances_;

Powered by Google App Engine
This is Rietveld 408576698