Bug 938022. Part 3: Add some MOZ_OVERRIDEs. r=cpearce

--HG--
extra : rebase_source : 66bd138f4a0bde5bb2494a157021a556d1267079
This commit is contained in:
Robert O'Callahan 2013-11-26 00:57:25 +13:00
parent 6b543c160e
commit e5c1cd3332

View File

@ -2684,7 +2684,7 @@ public:
// These notifications run on the media graph thread so we need to // These notifications run on the media graph thread so we need to
// dispatch events to the main thread. // dispatch events to the main thread.
virtual void NotifyBlockingChanged(MediaStreamGraph* aGraph, Blocking aBlocked) virtual void NotifyBlockingChanged(MediaStreamGraph* aGraph, Blocking aBlocked) MOZ_OVERRIDE
{ {
nsCOMPtr<nsIRunnable> event; nsCOMPtr<nsIRunnable> event;
if (aBlocked == BLOCKED) { if (aBlocked == BLOCKED) {
@ -2694,20 +2694,20 @@ public:
} }
aGraph->DispatchToMainThreadAfterStreamStateUpdate(event.forget()); aGraph->DispatchToMainThreadAfterStreamStateUpdate(event.forget());
} }
virtual void NotifyFinished(MediaStreamGraph* aGraph) virtual void NotifyFinished(MediaStreamGraph* aGraph) MOZ_OVERRIDE
{ {
nsCOMPtr<nsIRunnable> event = nsCOMPtr<nsIRunnable> event =
NS_NewRunnableMethod(this, &StreamListener::DoNotifyFinished); NS_NewRunnableMethod(this, &StreamListener::DoNotifyFinished);
aGraph->DispatchToMainThreadAfterStreamStateUpdate(event.forget()); aGraph->DispatchToMainThreadAfterStreamStateUpdate(event.forget());
} }
virtual void NotifyHasCurrentData(MediaStreamGraph* aGraph) virtual void NotifyHasCurrentData(MediaStreamGraph* aGraph) MOZ_OVERRIDE
{ {
MutexAutoLock lock(mMutex); MutexAutoLock lock(mMutex);
nsCOMPtr<nsIRunnable> event = nsCOMPtr<nsIRunnable> event =
NS_NewRunnableMethod(this, &StreamListener::DoNotifyHaveCurrentData); NS_NewRunnableMethod(this, &StreamListener::DoNotifyHaveCurrentData);
aGraph->DispatchToMainThreadAfterStreamStateUpdate(event.forget()); aGraph->DispatchToMainThreadAfterStreamStateUpdate(event.forget());
} }
virtual void NotifyOutput(MediaStreamGraph* aGraph) virtual void NotifyOutput(MediaStreamGraph* aGraph) MOZ_OVERRIDE
{ {
MutexAutoLock lock(mMutex); MutexAutoLock lock(mMutex);
if (mPendingNotifyOutput) if (mPendingNotifyOutput)