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

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

Issue 2793593002: AudioWorklet prototype
Patch Set: Rebase after ThreadedWorkletMessaginProxy change 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..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_;
};

Powered by Google App Engine
This is Rietveld 408576698