Bug 1028679 - Give DOMAudioNodeMediaStream an out-of-line destructor so that we can forward declare AudioNode in the header; r=bzbarsky
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 24 Jun 2014 07:21:21 -0700
changeset 190548 07212e931822de1e71c17c5f87d6b28af6e43570
parent 190547 b53f3f98de0292beb379776c368e3d9cb0b202b9
child 190549 86d027848ae07fba8923fd32e1ad3ed122e4ad7f
push idunknown
push userunknown
push dateunknown
reviewersbzbarsky
bugs1028679
milestone33.0a1
Bug 1028679 - Give DOMAudioNodeMediaStream an out-of-line destructor so that we can forward declare AudioNode in the header; r=bzbarsky
content/media/DOMMediaStream.cpp
content/media/DOMMediaStream.h
--- a/content/media/DOMMediaStream.cpp
+++ b/content/media/DOMMediaStream.cpp
@@ -415,16 +415,20 @@ DOMLocalMediaStream::CreateTrackUnionStr
   return stream.forget();
 }
 
 DOMAudioNodeMediaStream::DOMAudioNodeMediaStream(AudioNode* aNode)
 : mStreamNode(aNode)
 {
 }
 
+DOMAudioNodeMediaStream::~DOMAudioNodeMediaStream()
+{
+}
+
 already_AddRefed<DOMAudioNodeMediaStream>
 DOMAudioNodeMediaStream::CreateTrackUnionStream(nsIDOMWindow* aWindow,
                                                 AudioNode* aNode,
                                                 TrackTypeHints aHintContents)
 {
   nsRefPtr<DOMAudioNodeMediaStream> stream = new DOMAudioNodeMediaStream(aNode);
   stream->InitTrackUnionStream(aWindow, aHintContents);
   return stream.forget();
--- a/content/media/DOMMediaStream.h
+++ b/content/media/DOMMediaStream.h
@@ -282,16 +282,17 @@ public:
   CreateTrackUnionStream(nsIDOMWindow* aWindow, TrackTypeHints aHintContents = 0);
 };
 
 class DOMAudioNodeMediaStream : public DOMMediaStream
 {
   typedef dom::AudioNode AudioNode;
 public:
   DOMAudioNodeMediaStream(AudioNode* aNode);
+  ~DOMAudioNodeMediaStream();
 
   NS_DECL_ISUPPORTS_INHERITED
   NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(DOMAudioNodeMediaStream, DOMMediaStream)
 
   /**
    * Create a DOMAudioNodeMediaStream whose underlying stream is a TrackUnionStream.
    */
   static already_AddRefed<DOMAudioNodeMediaStream>