| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 AudioWorkletProcessor_h | 5 #ifndef AudioWorkletProcessor_h |
| 6 #define AudioWorkletProcessor_h | 6 #define AudioWorkletProcessor_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScopedPersistent.h" | 8 #include "bindings/core/v8/ScopedPersistent.h" |
| 9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 #include "platform/wtf/text/WTFString.h" |
| 11 #include "v8/include/v8.h" | 12 #include "v8/include/v8.h" |
| 12 #include "wtf/text/WTFString.h" | |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class AudioBuffer; | 16 class AudioBuffer; |
| 17 class AudioWorkletGlobalScope; | 17 class AudioWorkletGlobalScope; |
| 18 class AudioWorkletProcessorDefinition; | 18 class AudioWorkletProcessorDefinition; |
| 19 | 19 |
| 20 // AudioWorkletProcessor class represents the active instance created from | 20 // AudioWorkletProcessor class represents the active instance created from |
| 21 // AudioWorkletProcessorDefinition. |AudioWorkletNodeHandler| invokes | 21 // AudioWorkletProcessorDefinition. |AudioWorkletNodeHandler| invokes |
| 22 // process() method in this object upon graph rendering. | 22 // process() method in this object upon graph rendering. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 45 AudioWorkletProcessor(AudioWorkletGlobalScope*, const String& name); | 45 AudioWorkletProcessor(AudioWorkletGlobalScope*, const String& name); |
| 46 | 46 |
| 47 Member<AudioWorkletGlobalScope> global_scope_; | 47 Member<AudioWorkletGlobalScope> global_scope_; |
| 48 const String name_; | 48 const String name_; |
| 49 ScopedPersistent<v8::Object> instance_; | 49 ScopedPersistent<v8::Object> instance_; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace blink | 52 } // namespace blink |
| 53 | 53 |
| 54 #endif // AudioWorkletProcessor_h | 54 #endif // AudioWorkletProcessor_h |
| OLD | NEW |