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

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

Issue 2444683002: Move MediaKeys::Exception to CdmPromise::Exception (Closed)
Patch Set: include "media/base/media_keys.h" Created 4 years, 1 month 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/clients/mojo_cdm.cc ('k') | media/mojo/interfaces/content_decryption_module.typemap » ('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 import "url/mojo/url.mojom";
9 9
10 // See media::EmeInitDataType. 10 // See media::EmeInitDataType.
11 [Native] 11 [Native]
12 enum EmeInitDataType; 12 enum EmeInitDataType;
13 13
14 // Transport layer of media::CdmConfig (see media/base/cdm_config.h). 14 // Transport layer of media::CdmConfig (see media/base/cdm_config.h).
15 struct CdmConfig { 15 struct CdmConfig {
16 bool allow_distinctive_identifier; 16 bool allow_distinctive_identifier;
17 bool allow_persistent_state; 17 bool allow_persistent_state;
18 bool use_hw_secure_codecs; 18 bool use_hw_secure_codecs;
19 }; 19 };
20 20
21 // Transport layer of media::CdmPromise (see media/base/cdm_promise.h). 21 // Transport layer of media::CdmPromise (see media/base/cdm_promise.h).
22 // - When |success| is true, the promise is resolved and all other fields should 22 // - When |success| is true, the promise is resolved and all other fields should
23 // be ignored. 23 // be ignored.
24 // - When |success| is false, the promise is rejected with |exception|, 24 // - When |success| is false, the promise is rejected with |exception|,
25 // |system_code| and |error_message|. 25 // |system_code| and |error_message|.
26 struct CdmPromiseResult { 26 struct CdmPromiseResult {
27 // See media::MediaKeys::Exception 27 // See media::CdmPromise::Exception
28 [Native] 28 [Native]
29 enum Exception; 29 enum Exception;
30 30
31 bool success; 31 bool success;
32 Exception exception; 32 Exception exception;
33 uint32 system_code; 33 uint32 system_code;
34 string error_message; 34 string error_message;
35 }; 35 };
36 36
37 // Transport layer of media::CdmKeyInformation (see 37 // Transport layer of media::CdmKeyInformation (see
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 OnSessionClosed(string session_id); 110 OnSessionClosed(string session_id);
111 111
112 OnSessionKeysChange(string session_id, bool has_additional_usable_key, 112 OnSessionKeysChange(string session_id, bool has_additional_usable_key,
113 array<CdmKeyInformation> keys_info); 113 array<CdmKeyInformation> keys_info);
114 114
115 // Provide session expiration update for |session_id|. 115 // Provide session expiration update for |session_id|.
116 // |new_expiry_time_sec| is the number of seconds since epoch (Jan 1, 1970). 116 // |new_expiry_time_sec| is the number of seconds since epoch (Jan 1, 1970).
117 OnSessionExpirationUpdate(string session_id, double new_expiry_time_sec); 117 OnSessionExpirationUpdate(string session_id, double new_expiry_time_sec);
118 }; 118 };
OLDNEW
« no previous file with comments | « media/mojo/clients/mojo_cdm.cc ('k') | media/mojo/interfaces/content_decryption_module.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698