Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / webaudio / GainNode.h
index e0ff4f3..402da5f 100644 (file)
@@ -30,7 +30,7 @@
 #include "wtf/PassRefPtr.h"
 #include "wtf/Threading.h"
 
-namespace WebCore {
+namespace blink {
 
 class AudioContext;
 
@@ -39,9 +39,9 @@ class AudioContext;
 
 class GainNode FINAL : public AudioNode {
 public:
-    static PassRefPtr<GainNode> create(AudioContext* context, float sampleRate)
+    static PassRefPtrWillBeRawPtr<GainNode> create(AudioContext* context, float sampleRate)
     {
-        return adoptRef(new GainNode(context, sampleRate));
+        return adoptRefWillBeNoop(new GainNode(context, sampleRate));
     }
 
     // AudioNode
@@ -53,6 +53,8 @@ public:
     // JavaScript interface
     AudioParam* gain() { return m_gain.get(); }
 
+    virtual void trace(Visitor*) OVERRIDE;
+
 private:
     virtual double tailTime() const OVERRIDE { return 0; }
     virtual double latencyTime() const OVERRIDE { return 0; }
@@ -60,11 +62,11 @@ private:
     GainNode(AudioContext*, float sampleRate);
 
     float m_lastGain; // for de-zippering
-    RefPtr<AudioParam> m_gain;
+    RefPtrWillBeMember<AudioParam> m_gain;
 
     AudioFloatArray m_sampleAccurateGainValues;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // GainNode_h