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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessor.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/AudioWorkletProcessor.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessor.h b/third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessor.h
index 33bc46aad904820b7f70a489a444c1a8c2b5d6a4..df1a5b56be05c1db072e1c8157b0c86c112c9a22 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessor.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessor.h
@@ -6,7 +6,8 @@
#define AudioWorkletProcessor_h
#include "modules/ModulesExport.h"
-#include "platform/bindings/ScopedPersistent.h"
+#include "platform/bindings/ScriptWrappable.h"
+#include "platform/bindings/TraceWrapperV8Reference.h"
#include "platform/heap/Handle.h"
#include "platform/wtf/text/WTFString.h"
#include "v8/include/v8.h"
@@ -24,7 +25,8 @@ class AudioWorkletProcessorDefinition;
// This is constructed and destroyed on a worker thread, and all methods also
// must be called on the worker thread.
class MODULES_EXPORT AudioWorkletProcessor
- : public GarbageCollectedFinalized<AudioWorkletProcessor> {
+ : public GarbageCollectedFinalized<AudioWorkletProcessor>,
+ public TraceWrapperBase {
public:
static AudioWorkletProcessor* Create(AudioWorkletGlobalScope*,
const String& name);
@@ -40,13 +42,14 @@ class MODULES_EXPORT AudioWorkletProcessor
const String& GetName() const { return name_; }
DECLARE_TRACE();
+ DECLARE_TRACE_WRAPPERS();
private:
AudioWorkletProcessor(AudioWorkletGlobalScope*, const String& name);
Member<AudioWorkletGlobalScope> global_scope_;
const String name_;
- ScopedPersistent<v8::Object> instance_;
+ TraceWrapperV8Reference<v8::Object> instance_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698