Bug 1380569. P1 - rename CannotDecryptWaitingForKey() to NotifyWaitingForKey() and add the function to MediaDecoderOwner. r=gerald

We will use MediaEventSource to plumb the event from MFR to the media element.

MozReview-Commit-ID: 4gaEx7vYybE
This commit is contained in:
JW Wang
2017-07-13 14:41:09 +08:00
parent 7b53dc20a6
commit 6e89499aaf
3 changed files with 8 additions and 4 deletions

View File

@@ -4849,7 +4849,7 @@ HTMLMediaElement::FinishDecoderSetup(MediaDecoder* aDecoder)
// Not every decoder will produce waitingForKey events, only add ones that can
if (waitingForKeyProducer) {
mWaitingForKeyListener = waitingForKeyProducer->Connect(
mAbstractMainThread, this, &HTMLMediaElement::CannotDecryptWaitingForKey);
mAbstractMainThread, this, &HTMLMediaElement::NotifyWaitingForKey);
}
if (mChannelLoader) {
@@ -7049,9 +7049,9 @@ HTMLMediaElement::GetTopLevelPrincipal()
}
void
HTMLMediaElement::CannotDecryptWaitingForKey()
HTMLMediaElement::NotifyWaitingForKey()
{
LOG(LogLevel::Debug, ("%p, CannotDecryptWaitingForKey()", this));
LOG(LogLevel::Debug, ("%p, NotifyWaitingForKey()", this));
// http://w3c.github.io/encrypted-media/#wait-for-key
// 7.3.4 Queue a "waitingforkey" Event