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

Side by Side Diff: media/mojo/interfaces/content_decryption_module.mojom

Issue 813683005: Add |legacy_destination_url| back to SessionMessage for EME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « media/cdm/proxy_decryptor.cc ('k') | media/mojo/services/mojo_cdm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 module mojo; 5 module mojo;
6 6
7 import "media/mojo/interfaces/decryptor.mojom"; 7 import "media/mojo/interfaces/decryptor.mojom";
8 8
9 // Transport layer of media::MediaKeys::Exception (see media/base/media_keys.h). 9 // Transport layer of media::MediaKeys::Exception (see media/base/media_keys.h).
10 // This is used for ContentDecryptionModule (CDM) promise rejections. 10 // This is used for ContentDecryptionModule (CDM) promise rejections.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // - Implicit (null) decryptor: The client (e.g. media pipeline) will use the 110 // - Implicit (null) decryptor: The client (e.g. media pipeline) will use the
111 // |cdm_id| to locate a decryptor and associate it with the client. 111 // |cdm_id| to locate a decryptor and associate it with the client.
112 // Note: In Chromium GetCdmContext() is a sync call. But we don't have an easy 112 // Note: In Chromium GetCdmContext() is a sync call. But we don't have an easy
113 // way to support sync calls on a mojo interface. Instead the client should 113 // way to support sync calls on a mojo interface. Instead the client should
114 // generate a client side ID and pass it to the service. 114 // generate a client side ID and pass it to the service.
115 GetCdmContext(int32 cdm_id, Decryptor&? decryptor); 115 GetCdmContext(int32 cdm_id, Decryptor&? decryptor);
116 }; 116 };
117 117
118 // Session callbacks. See media/base/media_keys.h for details. 118 // Session callbacks. See media/base/media_keys.h for details.
119 interface ContentDecryptionModuleClient { 119 interface ContentDecryptionModuleClient {
120 OnSessionMessage(string session_id, CdmMessageType message_type, array<uint8> message); 120 OnSessionMessage(string session_id, CdmMessageType message_type,
121 array<uint8> message, string legacy_destination_url);
121 122
122 OnSessionClosed(string session_id); 123 OnSessionClosed(string session_id);
123 124
124 OnSessionError(string session_id, CdmException exception, 125 OnSessionError(string session_id, CdmException exception,
125 uint32 system_code, string error_message); 126 uint32 system_code, string error_message);
126 127
127 OnSessionKeysChange(string session_id, bool has_additional_usable_key, 128 OnSessionKeysChange(string session_id, bool has_additional_usable_key,
128 array<CdmKeyInformation> key_information); 129 array<CdmKeyInformation> key_information);
129 130
130 OnSessionExpirationUpdate(string session_id, int64 new_expiry_time_usec); 131 OnSessionExpirationUpdate(string session_id, int64 new_expiry_time_usec);
131 }; 132 };
OLDNEW
« no previous file with comments | « media/cdm/proxy_decryptor.cc ('k') | media/mojo/services/mojo_cdm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698