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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioWorklet.h

Issue 2793593002: AudioWorklet prototype
Patch Set: Merge changes, AudioParam bug fix Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef AudioWorklet_h 5 #ifndef AudioWorklet_h
6 #define AudioWorklet_h 6 #define AudioWorklet_h
7 7
8 #include "core/workers/Worklet.h" 8 #include "core/workers/Worklet.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class LocalFrame; 14 class LocalFrame;
15 class AudioWorkletMessagingProxy;
16 class WorkletGlobalScopeProxy;
15 17
16 class MODULES_EXPORT AudioWorklet final : public Worklet { 18 class MODULES_EXPORT AudioWorklet final : public Worklet {
17 WTF_MAKE_NONCOPYABLE(AudioWorklet); 19 WTF_MAKE_NONCOPYABLE(AudioWorklet);
18 20
19 public: 21 public:
20 static AudioWorklet* Create(LocalFrame*); 22 static AudioWorklet* Create(LocalFrame*);
21 ~AudioWorklet() override; 23 ~AudioWorklet() override;
22 24
25 AudioWorkletMessagingProxy* GetWorkletMessagingProxy() const;
26
23 DECLARE_VIRTUAL_TRACE(); 27 DECLARE_VIRTUAL_TRACE();
24 28
25 private: 29 private:
26 explicit AudioWorklet(LocalFrame*); 30 explicit AudioWorklet(LocalFrame*);
27 31
28 // Implements Worklet. 32 // Implements Worklet.
29 bool NeedsToCreateGlobalScope() final; 33 bool NeedsToCreateGlobalScope() final;
30 WorkletGlobalScopeProxy* CreateGlobalScope() final; 34 WorkletGlobalScopeProxy* CreateGlobalScope() final;
31 }; 35 };
32 36
33 } // namespace blink 37 } // namespace blink
34 38
35 #endif // AudioWorklet_h 39 #endif // AudioWorklet_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioParam.h ('k') | third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698