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

Unified Diff: Source/modules/webaudio/AudioListener.h

Issue 205173002: Move webaudio to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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: Source/modules/webaudio/AudioListener.h
diff --git a/Source/modules/webaudio/AudioListener.h b/Source/modules/webaudio/AudioListener.h
index dcd68dd42ba6717ec150bdcbfbc2a2d063219e7f..cf281a7c252740b00fb495430a929852f8f0d3f1 100644
--- a/Source/modules/webaudio/AudioListener.h
+++ b/Source/modules/webaudio/AudioListener.h
@@ -31,6 +31,7 @@
#include "bindings/v8/ScriptWrappable.h"
#include "platform/geometry/FloatPoint3D.h"
+#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -38,11 +39,11 @@ namespace WebCore {
// AudioListener maintains the state of the listener in the audio scene as defined in the OpenAL specification.
-class AudioListener : public ScriptWrappable, public RefCounted<AudioListener> {
+class AudioListener : public RefCountedWillBeGarbageCollectedFinalized<AudioListener>, public ScriptWrappable {
public:
- static PassRefPtr<AudioListener> create()
+ static PassRefPtrWillBeRawPtr<AudioListener> create()
{
- return adoptRef(new AudioListener());
+ return adoptRefWillBeNoop(new AudioListener());
}
// Position
@@ -76,6 +77,8 @@ public:
void setSpeedOfSound(double speedOfSound) { m_speedOfSound = speedOfSound; }
double speedOfSound() const { return m_speedOfSound; }
+ void trace(Visitor*) { }
+
private:
AudioListener();

Powered by Google App Engine
This is Rietveld 408576698