Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / audio / Panner.h
index b5b64e5..081e85f 100644 (file)
@@ -30,7 +30,7 @@
 #define Panner_h
 
 #include "platform/PlatformExport.h"
-#include "wtf/PassOwnPtr.h"
+#include "platform/heap/Handle.h"
 
 namespace blink {
 
@@ -39,7 +39,7 @@ class HRTFDatabaseLoader;
 
 // Abstract base class for panning a mono or stereo source.
 
-class PLATFORM_EXPORT Panner {
+class PLATFORM_EXPORT Panner : public GarbageCollectedFinalized<Panner> {
 public:
     enum {
         PanningModelEqualPower = 0,
@@ -48,7 +48,7 @@ public:
 
     typedef unsigned PanningModel;
 
-    static PassOwnPtr<Panner> create(PanningModel, float sampleRate, HRTFDatabaseLoader*);
+    static Panner* create(PanningModel, float sampleRate, HRTFDatabaseLoader*);
 
     virtual ~Panner() { };
 
@@ -61,6 +61,8 @@ public:
     virtual double tailTime() const = 0;
     virtual double latencyTime() const = 0;
 
+    virtual void trace(Visitor*) { }
+
 protected:
     Panner(PanningModel model) : m_panningModel(model) { }