| 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..81095a666ba0babc0add20e5c1a9e2a338a53261 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessor.h
|
| +++ b/third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessor.h
|
| @@ -7,10 +7,13 @@
|
|
|
| #include "modules/ModulesExport.h"
|
| #include "platform/bindings/ScopedPersistent.h"
|
| +#include "platform/bindings/ScriptWrappable.h"
|
| #include "platform/heap/Handle.h"
|
| #include "platform/wtf/text/WTFString.h"
|
| #include "v8/include/v8.h"
|
|
|
| +#include "modules/webaudio/AudioParamDescriptor.h"
|
| +
|
| namespace blink {
|
|
|
| class AudioBuffer;
|
| @@ -24,10 +27,13 @@ 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 ScriptWrappable {
|
| + DEFINE_WRAPPERTYPEINFO();
|
| +
|
| public:
|
| static AudioWorkletProcessor* Create(AudioWorkletGlobalScope*,
|
| - const String& name);
|
| + AudioWorkletProcessorDefinition*);
|
| virtual ~AudioWorkletProcessor();
|
|
|
| void SetInstance(v8::Isolate*, v8::Local<v8::Object> instance);
|
| @@ -37,15 +43,17 @@ class MODULES_EXPORT AudioWorkletProcessor
|
| // |AudioWorkletHandler| invokes this method to process audio.
|
| void Process(AudioBuffer* input_buffer, AudioBuffer* output_buffer);
|
|
|
| - const String& GetName() const { return name_; }
|
| + const String& GetName() const;
|
| + // const HeapVector<AudioParamDescriptor>& GetAudioParamDescriptors() const;
|
|
|
| DECLARE_TRACE();
|
|
|
| private:
|
| - AudioWorkletProcessor(AudioWorkletGlobalScope*, const String& name);
|
| + AudioWorkletProcessor(AudioWorkletGlobalScope*,
|
| + AudioWorkletProcessorDefinition*);
|
|
|
| Member<AudioWorkletGlobalScope> global_scope_;
|
| - const String name_;
|
| + Member<AudioWorkletProcessorDefinition> definition_;
|
| ScopedPersistent<v8::Object> instance_;
|
| };
|
|
|
|
|