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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: Created 3 years, 9 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 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 12 matching lines...) Expand all
23 * DAMAGE. 23 * DAMAGE.
24 */ 24 */
25 25
26 #ifndef BaseAudioContext_h 26 #ifndef BaseAudioContext_h
27 #define BaseAudioContext_h 27 #define BaseAudioContext_h
28 28
29 #include "bindings/core/v8/ActiveScriptWrappable.h" 29 #include "bindings/core/v8/ActiveScriptWrappable.h"
30 #include "bindings/core/v8/ScriptPromise.h" 30 #include "bindings/core/v8/ScriptPromise.h"
31 #include "bindings/core/v8/ScriptPromiseResolver.h" 31 #include "bindings/core/v8/ScriptPromiseResolver.h"
32 #include "core/dom/DOMTypedArray.h" 32 #include "core/dom/DOMTypedArray.h"
33 #include "core/dom/MaybeShared.h"
33 #include "core/dom/SuspendableObject.h" 34 #include "core/dom/SuspendableObject.h"
34 #include "core/events/EventListener.h" 35 #include "core/events/EventListener.h"
35 #include "modules/EventTargetModules.h" 36 #include "modules/EventTargetModules.h"
36 #include "modules/ModulesExport.h" 37 #include "modules/ModulesExport.h"
37 #include "modules/webaudio/AsyncAudioDecoder.h" 38 #include "modules/webaudio/AsyncAudioDecoder.h"
38 #include "modules/webaudio/AudioDestinationNode.h" 39 #include "modules/webaudio/AudioDestinationNode.h"
39 #include "modules/webaudio/DeferredTaskHandler.h" 40 #include "modules/webaudio/DeferredTaskHandler.h"
40 #include "modules/webaudio/IIRFilterNode.h" 41 #include "modules/webaudio/IIRFilterNode.h"
41 #include "platform/audio/AudioBus.h" 42 #include "platform/audio/AudioBus.h"
42 #include "platform/heap/Handle.h" 43 #include "platform/heap/Handle.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 size_t numberOfOutputChannels, 215 size_t numberOfOutputChannels,
215 ExceptionState&); 216 ExceptionState&);
216 StereoPannerNode* createStereoPanner(ExceptionState&); 217 StereoPannerNode* createStereoPanner(ExceptionState&);
217 ChannelSplitterNode* createChannelSplitter(ExceptionState&); 218 ChannelSplitterNode* createChannelSplitter(ExceptionState&);
218 ChannelSplitterNode* createChannelSplitter(size_t numberOfOutputs, 219 ChannelSplitterNode* createChannelSplitter(size_t numberOfOutputs,
219 ExceptionState&); 220 ExceptionState&);
220 ChannelMergerNode* createChannelMerger(ExceptionState&); 221 ChannelMergerNode* createChannelMerger(ExceptionState&);
221 ChannelMergerNode* createChannelMerger(size_t numberOfInputs, 222 ChannelMergerNode* createChannelMerger(size_t numberOfInputs,
222 ExceptionState&); 223 ExceptionState&);
223 OscillatorNode* createOscillator(ExceptionState&); 224 OscillatorNode* createOscillator(ExceptionState&);
224 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, 225 PeriodicWave* createPeriodicWave(const MaybeShared<DOMFloat32Array>& real,
225 DOMFloat32Array* imag, 226 const MaybeShared<DOMFloat32Array>& imag,
226 ExceptionState&); 227 ExceptionState&);
227 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, 228 PeriodicWave* createPeriodicWave(const MaybeShared<DOMFloat32Array>& real,
228 DOMFloat32Array* imag, 229 const MaybeShared<DOMFloat32Array>& imag,
229 const PeriodicWaveConstraints&, 230 const PeriodicWaveConstraints&,
230 ExceptionState&); 231 ExceptionState&);
231 232
232 // Suspend 233 // Suspend
233 virtual ScriptPromise suspendContext(ScriptState*) = 0; 234 virtual ScriptPromise suspendContext(ScriptState*) = 0;
234 235
235 // Resume 236 // Resume
236 virtual ScriptPromise resumeContext(ScriptState*) = 0; 237 virtual ScriptPromise resumeContext(ScriptState*) = 0;
237 238
238 // IIRFilter 239 // IIRFilter
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 // It is somewhat arbitrary and could be increased if necessary. 477 // It is somewhat arbitrary and could be increased if necessary.
477 enum { MaxNumberOfChannels = 32 }; 478 enum { MaxNumberOfChannels = 32 };
478 479
479 Optional<AutoplayStatus> m_autoplayStatus; 480 Optional<AutoplayStatus> m_autoplayStatus;
480 AudioIOPosition m_outputPosition; 481 AudioIOPosition m_outputPosition;
481 }; 482 };
482 483
483 } // namespace blink 484 } // namespace blink
484 485
485 #endif // BaseAudioContext_h 486 #endif // BaseAudioContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698