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

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

Issue 2912743002: [WIP] Worklet: Merge MainThreadWorklet and ThreadedWorklet into Worklet
Patch Set: WIP Created 3 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 AudioWorkletMessagingProxy_h 5 #ifndef AudioWorkletMessagingProxy_h
6 #define AudioWorkletMessagingProxy_h 6 #define AudioWorkletMessagingProxy_h
7 7
8 #include <memory> 8 #include <memory>
9 #include "core/workers/ThreadedWorkletMessagingProxy.h" 9 #include "core/workers/ThreadedWorkletMessagingProxy.h"
10 #include "platform/wtf/Allocator.h" 10 #include "platform/wtf/Allocator.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ExecutionContext; 14 class ExecutionContext;
15 class WorkerThread; 15 class WorkerThread;
16 16
17 class AudioWorkletMessagingProxy final : public ThreadedWorkletMessagingProxy { 17 class AudioWorkletMessagingProxy final : public ThreadedWorkletMessagingProxy {
18 USING_FAST_MALLOC(AudioWorkletMessagingProxy); 18 USING_FAST_MALLOC(AudioWorkletMessagingProxy);
19 19
20 public: 20 public:
21 explicit AudioWorkletMessagingProxy(ExecutionContext*); 21 explicit AudioWorkletMessagingProxy(ExecutionContext*);
22 ~AudioWorkletMessagingProxy() override;
22 23
23 protected: 24 protected:
24 ~AudioWorkletMessagingProxy() override;
25
26 std::unique_ptr<WorkerThread> CreateWorkerThread(double origin_time) override; 25 std::unique_ptr<WorkerThread> CreateWorkerThread(double origin_time) override;
27 }; 26 };
28 27
29 } // namespace blink 28 } // namespace blink
30 29
31 #endif // AudioWorkletMessagingProxy_h 30 #endif // AudioWorkletMessagingProxy_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698