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

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

Issue 2765343003: media: Add MediaDrmStorage (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
(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 {
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698