Bug 1220320 - implement the nsSupportsWeakReference. r=baku

--HG--
extra : transplant_source : %B1%5C%05%C3%06lY%88%EDv%E9%22M6%3Cdtz%A4%3E
This commit is contained in:
Alastor Wu 2015-11-06 16:29:03 +08:00
parent b9ace4602b
commit caa47cc319
2 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,7 @@ NS_IMPL_CYCLE_COLLECTION(nsSpeechTask, mSpeechSynthesis, mUtterance, mCallback);
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsSpeechTask)
NS_INTERFACE_MAP_ENTRY(nsISpeechTask)
NS_INTERFACE_MAP_ENTRY(nsIAudioChannelAgentCallback)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISpeechTask)
NS_INTERFACE_MAP_END

View File

@ -21,6 +21,7 @@ class SynthStreamListener;
class nsSpeechTask : public nsISpeechTask
, public nsIAudioChannelAgentCallback
, public nsSupportsWeakReference
{
friend class SynthStreamListener;