| OLD | NEW |
| 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 AudioWorkletThread_h | 5 #ifndef AudioWorkletThread_h |
| 6 #define AudioWorkletThread_h | 6 #define AudioWorkletThread_h |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include "core/workers/WorkerThread.h" | 9 #include "core/workers/WorkerThread.h" |
| 9 #include "core/workers/WorkletThreadHolder.h" | 10 #include "core/workers/WorkletThreadHolder.h" |
| 10 #include "modules/ModulesExport.h" | 11 #include "modules/ModulesExport.h" |
| 11 #include <memory> | |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class WorkerReportingProxy; | 15 class WorkerReportingProxy; |
| 16 | 16 |
| 17 // AudioWorkletThread is a per-frame singleton object that represents the | 17 // AudioWorkletThread is a per-frame singleton object that represents the |
| 18 // backing thread for the processing of AudioWorkletNode/AudioWorkletProcessor. | 18 // backing thread for the processing of AudioWorkletNode/AudioWorkletProcessor. |
| 19 // It is supposed to run an instance of V8 isolate. | 19 // It is supposed to run an instance of V8 isolate. |
| 20 | 20 |
| 21 class MODULES_EXPORT AudioWorkletThread final : public WorkerThread { | 21 class MODULES_EXPORT AudioWorkletThread final : public WorkerThread { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 43 | 43 |
| 44 bool IsOwningBackingThread() const override { return false; } | 44 bool IsOwningBackingThread() const override { return false; } |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 AudioWorkletThread(ThreadableLoadingContext*, WorkerReportingProxy&); | 47 AudioWorkletThread(ThreadableLoadingContext*, WorkerReportingProxy&); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace blink | 50 } // namespace blink |
| 51 | 51 |
| 52 #endif // AudioWorkletThread_h | 52 #endif // AudioWorkletThread_h |
| OLD | NEW |