Bug 1374184. P3 - rename NotifyDownloadProgressed to DownloadProgressed for it is used internally by MediaDecoder and fix the comment. r=gerald

MozReview-Commit-ID: 6nUEjvZ73ko

--HG--
extra : rebase_source : 55d6a5b385258aa080974574a2bfc2ef722d6e00
extra : source : 9a5d941f74815acf189bdb4f85578a2634a632ae
This commit is contained in:
JW Wang 2017-06-19 14:27:58 +08:00
Родитель ca683c8fb9
Коммит 95284c8279
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -204,7 +204,7 @@ MediaDecoder::ResourceCallback::NotifyDataArrived()
return;
}
mDecoder->NotifyDownloadProgressed();
mDecoder->DownloadProgressed();
if (mTimerArmed) {
return;
@ -1045,7 +1045,7 @@ MediaDecoder::ShouldThrottleDownload()
}
void
MediaDecoder::NotifyDownloadProgressed()
MediaDecoder::DownloadProgressed()
{
MOZ_ASSERT(NS_IsMainThread());
MOZ_DIAGNOSTIC_ASSERT(!IsShutdown());
@ -1551,7 +1551,7 @@ void
MediaDecoder::NotifyDataArrived()
{
NotifyDataArrivedInternal();
NotifyDownloadProgressed();
DownloadProgressed();
}
// Provide access to the state machine object

Просмотреть файл

@ -587,9 +587,9 @@ protected:
private:
void NotifyDataArrivedInternal();
// Called by MediaResource when some data has been received.
// Called to recompute playback rate and notify 'progress' event.
// Call on the main thread only.
void NotifyDownloadProgressed();
void DownloadProgressed();
nsCString GetDebugInfo();