Bug 1289004. Part 1 - Constify and devirtualize some functions. r=cpearce.

MozReview-Commit-ID: 8f14ekpinCR

--HG--
extra : rebase_source : ca1d62df789639817e4c7da01919783038db22f0
extra : source : 5dc15cac9b631fd10b03902b3ba627fd763a49aa
This commit is contained in:
JW Wang 2016-07-13 16:35:37 +08:00
Родитель 662cc63aec
Коммит 694dff250f
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -482,7 +482,7 @@ MediaDecoder::SetInfinite(bool aInfinite)
}
bool
MediaDecoder::IsInfinite()
MediaDecoder::IsInfinite() const
{
MOZ_ASSERT(NS_IsMainThread());
return mInfiniteStream;

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

@ -220,7 +220,7 @@ public:
virtual double GetDuration();
// Return true if the stream is infinite (see SetInfinite).
virtual bool IsInfinite();
bool IsInfinite() const;
// Called by MediaResource when some data has been received.
// Call on the main thread only.
@ -232,12 +232,12 @@ public:
// Return true if we are currently seeking in the media resource.
// Call on the main thread only.
virtual bool IsSeeking() const;
bool IsSeeking() const;
// Return true if the decoder has reached the end of playback or the decoder
// has shutdown.
// Call on the main thread only.
virtual bool IsEndedOrShutdown() const;
bool IsEndedOrShutdown() const;
// Return true if the MediaDecoderOwner's error attribute is not null.
// If the MediaDecoder is shutting down, OwnerHasError will return true.