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

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

Issue 2425663003: media: Use native CDM enum types in media mojo interfaces (Closed)
Patch Set: comments addressed Created 4 years, 2 months 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/base/ipc/media_param_traits_macros.h ('k') | media/mojo/clients/mojo_cdm.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 e9578654d7e2725342177b823cf0561f38f124b9..2d7edde6977fd401393cb6b942730307c4faa97b 100644
--- a/media/mojo/clients/mojo_cdm.h
+++ b/media/mojo/clients/mojo_cdm.h
@@ -36,6 +36,8 @@ class MojoCdm : public MediaKeys,
public CdmContext,
public mojom::ContentDecryptionModuleClient {
public:
+ using MessageType = MediaKeys::MessageType;
+
static void Create(
const std::string& key_system,
const GURL& security_origin,
@@ -90,7 +92,7 @@ class MojoCdm : public MediaKeys,
// mojom::ContentDecryptionModuleClient implementation.
void OnSessionMessage(const std::string& session_id,
- mojom::CdmMessageType message_type,
+ MessageType message_type,
const std::vector<uint8_t>& message) final;
void OnSessionClosed(const std::string& session_id) final;
void OnSessionKeysChange(
« no previous file with comments | « media/base/ipc/media_param_traits_macros.h ('k') | media/mojo/clients/mojo_cdm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698