OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // IPC messages for content decryption module (CDM) implementation. | 5 // IPC messages for content decryption module (CDM) implementation. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 int /* cdm_id */, | 97 int /* cdm_id */, |
98 uint32_t /* promise_id */, | 98 uint32_t /* promise_id */, |
99 std::string /* session_id */) | 99 std::string /* session_id */) |
100 | 100 |
101 IPC_MESSAGE_CONTROL2(CdmHostMsg_DestroyCdm, | 101 IPC_MESSAGE_CONTROL2(CdmHostMsg_DestroyCdm, |
102 int /* render_frame_id */, | 102 int /* render_frame_id */, |
103 int /* cdm_id */) | 103 int /* cdm_id */) |
104 | 104 |
105 // Messages from browser to render. | 105 // Messages from browser to render. |
106 | 106 |
107 IPC_MESSAGE_ROUTED5(CdmMsg_SessionMessage, | 107 IPC_MESSAGE_ROUTED4(CdmMsg_SessionMessage, |
108 int /* cdm_id */, | 108 int /* cdm_id */, |
109 std::string /* session_id */, | 109 std::string /* session_id */, |
110 media::MediaKeys::MessageType /* message_type */, | 110 media::MediaKeys::MessageType /* message_type */, |
111 std::vector<uint8_t> /* message */, | 111 std::vector<uint8_t> /* message */) |
112 GURL /* legacy_destination_url */) | |
113 | 112 |
114 IPC_MESSAGE_ROUTED2(CdmMsg_SessionClosed, | 113 IPC_MESSAGE_ROUTED2(CdmMsg_SessionClosed, |
115 int /* cdm_id */, | 114 int /* cdm_id */, |
116 std::string /* session_id */) | 115 std::string /* session_id */) |
117 | 116 |
118 IPC_MESSAGE_ROUTED5(CdmMsg_LegacySessionError, | |
119 int /* cdm_id */, | |
120 std::string /* session_id */, | |
121 media::MediaKeys::Exception /* exception_code */, | |
122 uint32_t /* system_code */, | |
123 std::string /* error_message */) | |
124 | |
125 IPC_MESSAGE_ROUTED4(CdmMsg_SessionKeysChange, | 117 IPC_MESSAGE_ROUTED4(CdmMsg_SessionKeysChange, |
126 int /* cdm_id */, | 118 int /* cdm_id */, |
127 std::string /* session_id */, | 119 std::string /* session_id */, |
128 bool /* has_additional_usable_key */, | 120 bool /* has_additional_usable_key */, |
129 std::vector<media::CdmKeyInformation> /* keys_info */) | 121 std::vector<media::CdmKeyInformation> /* keys_info */) |
130 | 122 |
131 IPC_MESSAGE_ROUTED3(CdmMsg_SessionExpirationUpdate, | 123 IPC_MESSAGE_ROUTED3(CdmMsg_SessionExpirationUpdate, |
132 int /* cdm_id */, | 124 int /* cdm_id */, |
133 std::string /* session_id */, | 125 std::string /* session_id */, |
134 base::Time /* new_expiry_time */) | 126 base::Time /* new_expiry_time */) |
135 | 127 |
136 IPC_MESSAGE_ROUTED2(CdmMsg_ResolvePromise, | 128 IPC_MESSAGE_ROUTED2(CdmMsg_ResolvePromise, |
137 int /* cdm_id */, | 129 int /* cdm_id */, |
138 uint32_t /* promise_id */) | 130 uint32_t /* promise_id */) |
139 | 131 |
140 IPC_MESSAGE_ROUTED3(CdmMsg_ResolvePromiseWithSession, | 132 IPC_MESSAGE_ROUTED3(CdmMsg_ResolvePromiseWithSession, |
141 int /* cdm_id */, | 133 int /* cdm_id */, |
142 uint32_t /* promise_id */, | 134 uint32_t /* promise_id */, |
143 std::string /* session_id */) | 135 std::string /* session_id */) |
144 | 136 |
145 IPC_MESSAGE_ROUTED5(CdmMsg_RejectPromise, | 137 IPC_MESSAGE_ROUTED5(CdmMsg_RejectPromise, |
146 int /* cdm_id */, | 138 int /* cdm_id */, |
147 uint32_t /* promise_id */, | 139 uint32_t /* promise_id */, |
148 media::MediaKeys::Exception /* exception */, | 140 media::MediaKeys::Exception /* exception */, |
149 uint32_t /* system_code */, | 141 uint32_t /* system_code */, |
150 std::string /* error_message */) | 142 std::string /* error_message */) |
OLD | NEW |