Chromium Code Reviews| Index: media/mojo/interfaces/media_drm_storage.mojom |
| diff --git a/media/mojo/interfaces/media_drm_storage.mojom b/media/mojo/interfaces/media_drm_storage.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6edc9b5a8eb384332cb4233ae56ba4e148afc51a |
| --- /dev/null |
| +++ b/media/mojo/interfaces/media_drm_storage.mojom |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module media.mojom; |
| + |
| +import "url/mojo/origin.mojom"; |
| + |
| +// An interface to store ....????? for CDM. This includes Android |
| +// MediaDrm. See Android documentation about MediaDrm: |
| +// https://developer.android.com/reference/android/media/MediaDrm.html |
| + |
| +// TODO(xhwang): Use a struct for PersistentSessionInfo. |
| + |
| +interface MediaDrmStorage { |
|
alokp
2017/03/24 04:51:26
If you could access the per-profile Pref registry
|
| + // Initializes |this| to be bound to the |origin|. This should not modify |
| + // anything in the storage. |
| + Initialize(url.mojom.Origin origin); |
| + |
| + // Saves |origin| in the storage after MediaDrm is provisioned for |origin|. |
| + OnProvisioned() => (bool success); |
| + |
| + // Saves persistent session data for |session_id|. |
| + SavePersistentSession( |
| + string session_id, array<uint8> key_set_id, string mime_type) |
| + => (bool success); |
| + |
| + LoadPersistentSession(string session_id) |
| + => (bool success, array<uint8>? key_set_id, string? mime_type); |
| + |
| + // Removes the persistent session info for |session_id| from the storage. |
| + RemovePersistentSession(string session_id) => (bool success); |
| +}; |