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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
index b3011004d5c9533d7dff2408cd0bfa44ea631ac0..92a19c274a4b17cf2dab72292d1b59d9e5bae404 100644
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
@@ -30,6 +30,7 @@
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptPromiseResolver.h"
#include "core/dom/DOMTypedArray.h"
+#include "core/dom/MaybeShared.h"
#include "core/dom/SuspendableObject.h"
#include "core/events/EventListener.h"
#include "modules/EventTargetModules.h"
@@ -221,11 +222,11 @@ class MODULES_EXPORT BaseAudioContext
ChannelMergerNode* createChannelMerger(size_t numberOfInputs,
ExceptionState&);
OscillatorNode* createOscillator(ExceptionState&);
- PeriodicWave* createPeriodicWave(DOMFloat32Array* real,
- DOMFloat32Array* imag,
+ PeriodicWave* createPeriodicWave(const MaybeShared<DOMFloat32Array>& real,
+ const MaybeShared<DOMFloat32Array>& imag,
ExceptionState&);
- PeriodicWave* createPeriodicWave(DOMFloat32Array* real,
- DOMFloat32Array* imag,
+ PeriodicWave* createPeriodicWave(const MaybeShared<DOMFloat32Array>& real,
+ const MaybeShared<DOMFloat32Array>& imag,
const PeriodicWaveConstraints&,
ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698