Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / webaudio / OfflineAudioDestinationNode.h
index c2ee3dd..3f6fb4b 100644 (file)
@@ -31,7 +31,7 @@
 #include "wtf/PassRefPtr.h"
 #include "wtf/RefPtr.h"
 
-namespace WebCore {
+namespace blink {
 
 class AudioBus;
 class AudioContext;
@@ -46,6 +46,7 @@ public:
     virtual ~OfflineAudioDestinationNode();
 
     // AudioNode
+    virtual void dispose() OVERRIDE;
     virtual void initialize() OVERRIDE;
     virtual void uninitialize() OVERRIDE;
 
@@ -57,27 +58,22 @@ public:
     virtual void trace(Visitor*) OVERRIDE;
 
 private:
-    class OfflineRenderingTask;
-    friend class OfflineRenderingTask;
-
     OfflineAudioDestinationNode(AudioContext*, AudioBuffer* renderTarget);
 
     // This AudioNode renders into this AudioBuffer.
     RefPtrWillBeMember<AudioBuffer> m_renderTarget;
-
     // Temporary AudioBus for each render quantum.
     RefPtr<AudioBus> m_renderBus;
 
     // Rendering thread.
-    OwnPtr<blink::WebThread> m_renderThread;
+    OwnPtr<WebThread> m_renderThread;
     bool m_startedRendering;
     void offlineRender();
 
     // For completion callback on main thread.
-    static void notifyCompleteDispatch(void* userData);
     void notifyComplete();
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // OfflineAudioDestinationNode_h