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

Unified Diff: third_party/WebKit/Source/modules/webaudio/PeriodicWave.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/PeriodicWave.h
diff --git a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h
index a6cf94c44b013d0d48e010c97313decc8b5731f5..aaef823d91603b4b40833bf326be19a839ee469e 100644
--- a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h
+++ b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h
@@ -29,12 +29,13 @@
#ifndef PeriodicWave_h
#define PeriodicWave_h
+#include <memory>
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/dom/DOMTypedArray.h"
+#include "core/dom/MaybeShared.h"
#include "platform/audio/AudioArray.h"
#include "wtf/Forward.h"
#include "wtf/Vector.h"
-#include <memory>
namespace blink {
@@ -63,8 +64,8 @@ class PeriodicWave final : public GarbageCollectedFinalized<PeriodicWave>,
ExceptionState&);
static PeriodicWave* create(BaseAudioContext&,
- DOMFloat32Array* real,
- DOMFloat32Array* imag,
+ const MaybeShared<DOMFloat32Array>& real,
+ const MaybeShared<DOMFloat32Array>& imag,
bool normalize,
ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698