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

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

Issue 2083433002: Mojo: Remove url type converters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/mojo/interfaces/BUILD.gn ('k') | media/mojo/services/mojo_cdm_service.cc » ('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 media.mojom; 5 module media.mojom;
6 6
7 import "media/mojo/interfaces/decryptor.mojom"; 7 import "media/mojo/interfaces/decryptor.mojom";
8 import "url/mojo/url.mojom";
8 9
9 // Transport layer of media::MediaKeys::Exception (see media/base/media_keys.h). 10 // Transport layer of media::MediaKeys::Exception (see media/base/media_keys.h).
10 // This is used for ContentDecryptionModule (CDM) promise rejections. 11 // This is used for ContentDecryptionModule (CDM) promise rejections.
11 enum CdmException { 12 enum CdmException {
12 NOT_SUPPORTED_ERROR, 13 NOT_SUPPORTED_ERROR,
13 INVALID_STATE_ERROR, 14 INVALID_STATE_ERROR,
14 INVALID_ACCESS_ERROR, 15 INVALID_ACCESS_ERROR,
15 QUOTA_EXCEEDED_ERROR, 16 QUOTA_EXCEEDED_ERROR,
16 UNKNOWN_ERROR, 17 UNKNOWN_ERROR,
17 CLIENT_ERROR, 18 CLIENT_ERROR,
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 CloseSession(string session_id) => (CdmPromiseResult result); 125 CloseSession(string session_id) => (CdmPromiseResult result);
125 126
126 // Removes stored session data associated with the active session specified by 127 // Removes stored session data associated with the active session specified by
127 // |session_id|. 128 // |session_id|.
128 RemoveSession(string session_id) => (CdmPromiseResult result); 129 RemoveSession(string session_id) => (CdmPromiseResult result);
129 }; 130 };
130 131
131 // Session callbacks. See media/base/media_keys.h for details. 132 // Session callbacks. See media/base/media_keys.h for details.
132 interface ContentDecryptionModuleClient { 133 interface ContentDecryptionModuleClient {
133 OnSessionMessage(string session_id, CdmMessageType message_type, 134 OnSessionMessage(string session_id, CdmMessageType message_type,
134 array<uint8> message, string legacy_destination_url); 135 array<uint8> message, url.mojom.Url legacy_destination_url);
135 136
136 OnSessionClosed(string session_id); 137 OnSessionClosed(string session_id);
137 138
138 OnLegacySessionError(string session_id, CdmException exception, 139 OnLegacySessionError(string session_id, CdmException exception,
139 uint32 system_code, string error_message); 140 uint32 system_code, string error_message);
140 141
141 OnSessionKeysChange(string session_id, bool has_additional_usable_key, 142 OnSessionKeysChange(string session_id, bool has_additional_usable_key,
142 array<CdmKeyInformation> key_information); 143 array<CdmKeyInformation> key_information);
143 144
144 // Provide session expiration update for |session_id|. 145 // Provide session expiration update for |session_id|.
145 // |new_expiry_time_sec| is the number of seconds since epoch (Jan 1, 1970). 146 // |new_expiry_time_sec| is the number of seconds since epoch (Jan 1, 1970).
146 OnSessionExpirationUpdate(string session_id, double new_expiry_time_sec); 147 OnSessionExpirationUpdate(string session_id, double new_expiry_time_sec);
147 }; 148 };
OLDNEW
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/services/mojo_cdm_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698