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

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

Issue 1960533003: [DO NOT SUBMIT] AudioWorklet FS1: importing scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/WindowAudioWorklet.h
diff --git a/third_party/WebKit/Source/modules/webaudio/WindowAudioWorklet.h b/third_party/WebKit/Source/modules/webaudio/WindowAudioWorklet.h
new file mode 100644
index 0000000000000000000000000000000000000000..708878e9a2f174e35a945f8c18cdfef0ae9c89f5
--- /dev/null
+++ b/third_party/WebKit/Source/modules/webaudio/WindowAudioWorklet.h
@@ -0,0 +1,39 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WindowAudioWorklet_h
+#define WindowAudioWorklet_h
+
+#include "core/frame/DOMWindowProperty.h"
+#include "modules/ModulesExport.h"
+#include "platform/Supplementable.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class DOMWindow;
+class ExecutionContext;
+class AudioWorklet;
+class Worklet;
+
+class MODULES_EXPORT WindowAudioWorklet final : public GarbageCollected<WindowAudioWorklet>, public Supplement<LocalDOMWindow>, public DOMWindowProperty {
+ USING_GARBAGE_COLLECTED_MIXIN(WindowAudioWorklet);
+
+public:
+ static WindowAudioWorklet& from(LocalDOMWindow&);
+ static Worklet* audioWorklet(ExecutionContext*, DOMWindow&);
+ AudioWorklet* audioWorklet(ExecutionContext*) const;
+
+ DECLARE_TRACE();
+
+private:
+ explicit WindowAudioWorklet(LocalDOMWindow&);
+ static const char* supplementName();
+
+ mutable Member<AudioWorklet> m_audioWorklet;
+};
+
+} // namespace blink
+
+#endif // WindowAudioWorklet_h
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/DEPS ('k') | third_party/WebKit/Source/modules/webaudio/WindowAudioWorklet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698