| 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 AudioWorkletProcessorDefinition_h | 5 #ifndef AudioWorkletProcessorDefinition_h |
| 6 #define AudioWorkletProcessorDefinition_h | 6 #define AudioWorkletProcessorDefinition_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 // Represents a JavaScript class definition registered in the | 16 // Represents a JavaScript class definition registered in the |
| 17 // AudioWorkletGlobalScope. After the registration, a definition class contains | 17 // AudioWorkletGlobalScope. After the registration, a definition class contains |
| 18 // the V8 representation of class components (constructor, process callback, | 18 // the V8 representation of class components (constructor, process callback, |
| 19 // prototypes and parameter descriptors). | 19 // prototypes and parameter descriptors). |
| 20 // | 20 // |
| 21 // This is constructed and destroyed on a worker thread, and all methods also | 21 // This is constructed and destroyed on a worker thread, and all methods also |
| 22 // must be called on the worker thread. | 22 // must be called on the worker thread. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 50 ScopedPersistent<v8::Function> constructor_; | 50 ScopedPersistent<v8::Function> constructor_; |
| 51 ScopedPersistent<v8::Function> process_; | 51 ScopedPersistent<v8::Function> process_; |
| 52 | 52 |
| 53 // TODO(hongchan): A container for AudioParamDescriptor objects. | 53 // TODO(hongchan): A container for AudioParamDescriptor objects. |
| 54 // ScopedPersistent<v8::Array> m_parameterDescriptors; | 54 // ScopedPersistent<v8::Array> m_parameterDescriptors; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace blink | 57 } // namespace blink |
| 58 | 58 |
| 59 #endif // AudioWorkletProcessorDefinition_h | 59 #endif // AudioWorkletProcessorDefinition_h |
| OLD | NEW |