forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encrypted Media: Separate CDM IPC messages from MediaPlayer messages.
TBR=cevans@chromium.org BUG=315312 Review URL: https://codereview.chromium.org/176263002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253970 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
xhwang@chromium.org
committed
Feb 27, 2014
1 parent
858ceda
commit 33fdddf
Showing
10 changed files
with
96 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
// IPC messages for content decryption module (CDM) implementation. | ||
// Multiply-included message file, hence no include guard. | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
#include "base/basictypes.h" | ||
#include "content/common/content_export.h" | ||
#include "content/common/media/cdm_messages_enums.h" | ||
#include "ipc/ipc_message_macros.h" | ||
#include "media/base/media_keys.h" | ||
#include "url/gurl.h" | ||
|
||
#undef IPC_MESSAGE_EXPORT | ||
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT | ||
#define IPC_MESSAGE_START CdmMsgStart | ||
|
||
IPC_ENUM_TRAITS(media::MediaKeys::KeyError) | ||
IPC_ENUM_TRAITS(CdmHostMsg_CreateSession_Type) | ||
|
||
IPC_MESSAGE_ROUTED3(CdmHostMsg_InitializeCDM, | ||
int /* media_keys_id */, | ||
std::vector<uint8> /* uuid */, | ||
GURL /* frame url */) | ||
|
||
IPC_MESSAGE_ROUTED4(CdmHostMsg_CreateSession, | ||
int /* media_keys_id */, | ||
uint32_t /* session_id */, | ||
CdmHostMsg_CreateSession_Type /* type */, | ||
std::vector<uint8> /* init_data */) | ||
|
||
IPC_MESSAGE_ROUTED3(CdmHostMsg_UpdateSession, | ||
int /* media_keys_id */, | ||
uint32_t /* session_id */, | ||
std::vector<uint8> /* response */) | ||
|
||
IPC_MESSAGE_ROUTED2(CdmHostMsg_ReleaseSession, | ||
int /* media_keys_id */, | ||
uint32_t /* session_id */) | ||
|
||
IPC_MESSAGE_ROUTED1(CdmHostMsg_DestroyCdm, | ||
int /* media_keys_id */) | ||
|
||
IPC_MESSAGE_ROUTED3(CdmMsg_SessionCreated, | ||
int /* media_keys_id */, | ||
uint32_t /* session_id */, | ||
std::string /* web_session_id */) | ||
|
||
IPC_MESSAGE_ROUTED4(CdmMsg_SessionMessage, | ||
int /* media_keys_id */, | ||
uint32_t /* session_id */, | ||
std::vector<uint8> /* message */, | ||
GURL /* destination_url */) | ||
|
||
IPC_MESSAGE_ROUTED2(CdmMsg_SessionReady, | ||
int /* media_keys_id */, | ||
uint32_t /* session_id */) | ||
|
||
IPC_MESSAGE_ROUTED2(CdmMsg_SessionClosed, | ||
int /* media_keys_id */, | ||
uint32_t /* session_id */) | ||
|
||
IPC_MESSAGE_ROUTED4(CdmMsg_SessionError, | ||
int /* media_keys_id */, | ||
uint32_t /* session_id */, | ||
media::MediaKeys::KeyError /* error_code */, | ||
int /* system_code */) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef CONTENT_COMMON_MEDIA_CDM_MESSAGES_ENUMS_H_ | ||
#define CONTENT_COMMON_MEDIA_CDM_MESSAGES_ENUMS_H_ | ||
|
||
// Dictates the session type when an EME session is created. | ||
enum CdmHostMsg_CreateSession_Type { | ||
CREATE_SESSION_TYPE_WEBM, | ||
CREATE_SESSION_TYPE_MP4 | ||
}; | ||
|
||
#endif // CONTENT_COMMON_MEDIA_CDM_MESSAGES_ENUMS_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters