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

Unified Diff: content/common/media/cdm_messages.h

Issue 1131753003: Plumb |use_secure_codecs| through to BrowserCdmFactoryAndroid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: content/common/media/cdm_messages.h
diff --git a/content/common/media/cdm_messages.h b/content/common/media/cdm_messages.h
index e9d1958edc65524b33868e284f40b194b9f12def..07d09563cc5781b35b1da7db4a4bf81498bd6c36 100644
--- a/content/common/media/cdm_messages.h
+++ b/content/common/media/cdm_messages.h
@@ -16,6 +16,21 @@
#include "media/base/media_keys.h"
#include "url/gurl.h"
+#ifndef CONTENT_COMMON_MEDIA_CDM_MESSAGES_H_
+#define CONTENT_COMMON_MEDIA_CDM_MESSAGES_H_
+
+namespace content {
+
+struct InitializeCdmParameters {
ddorwin 2015/05/13 06:03:20 Assuming this pattern was copied from somewhere el
sandersd (OOO until July 31) 2015/05/13 18:17:14 It was not copied from anywhere else, but it is on
+ std::string key_system;
+ GURL security_origin;
+ bool use_secure_codecs = false;
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_MEDIA_CDM_MESSAGES_H_
+
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
#define IPC_MESSAGE_START CdmMsgStart
@@ -35,14 +50,19 @@ IPC_STRUCT_TRAITS_BEGIN(media::CdmKeyInformation)
IPC_STRUCT_TRAITS_MEMBER(system_code)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(content::InitializeCdmParameters)
+ IPC_STRUCT_TRAITS_MEMBER(key_system)
+ IPC_STRUCT_TRAITS_MEMBER(security_origin)
+ IPC_STRUCT_TRAITS_MEMBER(use_secure_codecs)
+IPC_STRUCT_TRAITS_END()
+
// Messages from render to browser.
-IPC_MESSAGE_CONTROL5(CdmHostMsg_InitializeCdm,
+IPC_MESSAGE_CONTROL4(CdmHostMsg_InitializeCdm,
int /* render_frame_id */,
int /* cdm_id */,
uint32_t /* promise_id */,
- std::string /* key_system */,
- GURL /* security_origin */)
+ content::InitializeCdmParameters /* parameters */)
IPC_MESSAGE_CONTROL4(CdmHostMsg_SetServerCertificate,
int /* render_frame_id */,

Powered by Google App Engine
This is Rietveld 408576698