Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(624)

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 2568463003: media: Rename MediaKeys to ContentDecryptionModule (Closed)
Patch Set: comments addressed Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | media/cdm/aes_decryptor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.cc
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
index a105327d0635b16c4d2fdc937a2cb7a89c32fa91..03b11fb029fee3a10beeb932a0c0a33fb3d41955 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -30,9 +30,9 @@
#include "media/audio/null_audio_sink.h"
#include "media/base/bind_to_current_loop.h"
#include "media/base/cdm_context.h"
+#include "media/base/content_decryption_module.h"
#include "media/base/limits.h"
#include "media/base/media_content_type.h"
-#include "media/base/media_keys.h"
#include "media/base/media_log.h"
#include "media/base/media_switches.h"
#include "media/base/media_url_demuxer.h"
@@ -918,7 +918,8 @@ void WebMediaPlayerImpl::setContentDecryptionModule(
if (!cdm) {
result.completeWithError(
blink::WebContentDecryptionModuleExceptionInvalidStateError, 0,
- "The existing MediaKeys object cannot be removed at this time.");
+ "The existing ContentDecryptionModule object cannot be removed at this "
+ "time.");
return;
}
@@ -988,7 +989,7 @@ void WebMediaPlayerImpl::OnFFmpegMediaTracksUpdated(
void WebMediaPlayerImpl::SetCdm(blink::WebContentDecryptionModule* cdm) {
DCHECK(main_task_runner_->BelongsToCurrentThread());
DCHECK(cdm);
- scoped_refptr<MediaKeys> cdm_reference =
+ scoped_refptr<ContentDecryptionModule> cdm_reference =
ToWebContentDecryptionModuleImpl(cdm)->GetCdm();
if (!cdm_reference) {
NOTREACHED();
@@ -1033,7 +1034,7 @@ void WebMediaPlayerImpl::OnCdmAttached(bool success) {
if (set_cdm_result_) {
set_cdm_result_->completeWithError(
blink::WebContentDecryptionModuleExceptionNotSupportedError, 0,
- "Unable to set MediaKeys object");
+ "Unable to set ContentDecryptionModule object");
set_cdm_result_.reset();
}
}
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | media/cdm/aes_decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698