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

Unified Diff: media/mojo/clients/mojo_cdm.h

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/gpu/android_video_decode_accelerator.h ('k') | media/mojo/clients/mojo_cdm_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/clients/mojo_cdm.h
diff --git a/media/mojo/clients/mojo_cdm.h b/media/mojo/clients/mojo_cdm.h
index 0971c627b508bde544f0da90b600fa08791532e0..33f4c77494454a92c490912f21b5ad2ecd74275b 100644
--- a/media/mojo/clients/mojo_cdm.h
+++ b/media/mojo/clients/mojo_cdm.h
@@ -18,7 +18,7 @@
#include "media/base/cdm_context.h"
#include "media/base/cdm_initialized_promise.h"
#include "media/base/cdm_session_tracker.h"
-#include "media/base/media_keys.h"
+#include "media/base/content_decryption_module.h"
#include "media/mojo/interfaces/content_decryption_module.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
@@ -30,14 +30,14 @@ namespace media {
class MojoDecryptor;
-// A MediaKeys that proxies to a mojom::ContentDecryptionModule. That
-// mojom::ContentDecryptionModule proxies back to the MojoCdm via the
+// A ContentDecryptionModule that proxies to a mojom::ContentDecryptionModule.
+// That mojom::ContentDecryptionModule proxies back to the MojoCdm via the
// mojom::ContentDecryptionModuleClient interface.
-class MojoCdm : public MediaKeys,
+class MojoCdm : public ContentDecryptionModule,
public CdmContext,
public mojom::ContentDecryptionModuleClient {
public:
- using MessageType = MediaKeys::MessageType;
+ using MessageType = ContentDecryptionModule::MessageType;
static void Create(
const std::string& key_system,
@@ -50,7 +50,7 @@ class MojoCdm : public MediaKeys,
const SessionExpirationUpdateCB& session_expiration_update_cb,
const CdmCreatedCB& cdm_created_cb);
- // MediaKeys implementation.
+ // ContentDecryptionModule implementation.
void SetServerCertificate(const std::vector<uint8_t>& certificate,
std::unique_ptr<SimpleCdmPromise> promise) final;
void CreateSessionAndGenerateRequest(
« no previous file with comments | « media/gpu/android_video_decode_accelerator.h ('k') | media/mojo/clients/mojo_cdm_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698