OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 module media.mojom; | |
6 | |
7 import "url/mojo/origin.mojom"; | |
8 | |
9 // An interface to store ....????? for CDM. This includes Android | |
10 // MediaDrm. See Android documentation about MediaDrm: | |
11 // https://developer.android.com/reference/android/media/MediaDrm.html | |
12 | |
13 // TODO(xhwang): Use a struct for PersistentSessionInfo. | |
14 | |
15 interface MediaDrmStorage { | |
alokp
2017/03/24 04:51:26
If you could access the per-profile Pref registry
| |
16 // Initializes |this| to be bound to the |origin|. This should not modify | |
17 // anything in the storage. | |
18 Initialize(url.mojom.Origin origin); | |
19 | |
20 // Saves |origin| in the storage after MediaDrm is provisioned for |origin|. | |
21 OnProvisioned() => (bool success); | |
22 | |
23 // Saves persistent session data for |session_id|. | |
24 SavePersistentSession( | |
25 string session_id, array<uint8> key_set_id, string mime_type) | |
26 => (bool success); | |
27 | |
28 LoadPersistentSession(string session_id) | |
29 => (bool success, array<uint8>? key_set_id, string? mime_type); | |
30 | |
31 // Removes the persistent session info for |session_id| from the storage. | |
32 RemovePersistentSession(string session_id) => (bool success); | |
33 }; | |
OLD | NEW |