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

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

Issue 2668753006: Special-case LocalDOMWindow for same-origin access in bindings. (Closed)
Patch Set: Rebase and address comments. Created 3 years, 10 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
index 90b29c3fceb4fbe279edb3631c9b6972ba78f15d..cbfa998c8f5715fa2bd41ca0dfbd113e0cdfb524 100644
--- a/third_party/WebKit/Source/modules/webaudio/WindowAudioWorklet.h
+++ b/third_party/WebKit/Source/modules/webaudio/WindowAudioWorklet.h
@@ -6,17 +6,14 @@
#define WindowAudioWorklet_h
#include "core/dom/ContextLifecycleObserver.h"
-#include "core/frame/LocalDOMWindow.h"
#include "modules/ModulesExport.h"
+#include "modules/webaudio/AudioWorklet.h"
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
namespace blink {
-class AudioWorklet;
-class DOMWindow;
class LocalDOMWindow;
-class Worklet;
class MODULES_EXPORT WindowAudioWorklet final
: public GarbageCollected<WindowAudioWorklet>,
@@ -25,15 +22,15 @@ class MODULES_EXPORT WindowAudioWorklet final
USING_GARBAGE_COLLECTED_MIXIN(WindowAudioWorklet);
public:
- static WindowAudioWorklet& from(LocalDOMWindow&);
- static Worklet* audioWorklet(DOMWindow&);
- AudioWorklet* audioWorklet(LocalDOMWindow&);
+ static AudioWorklet* audioWorklet(LocalDOMWindow&);
void contextDestroyed(ExecutionContext*) override;
DECLARE_TRACE();
private:
+ static WindowAudioWorklet& from(LocalDOMWindow&);
+
explicit WindowAudioWorklet(LocalDOMWindow&);
static const char* supplementName();

Powered by Google App Engine
This is Rietveld 408576698