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

Unified Diff: media/base/android/java/src/org/chromium/media/MediaDrmStorageBridge.java

Issue 2805803002: [Clank] Implement MediaDrmStorageBridge with MediaDrmStorage (Closed)
Patch Set: Rebase Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/android/media_drm_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/java/src/org/chromium/media/MediaDrmStorageBridge.java
diff --git a/media/base/android/java/src/org/chromium/media/MediaDrmStorageBridge.java b/media/base/android/java/src/org/chromium/media/MediaDrmStorageBridge.java
index 92c90ac2b357d8a91b9c12a01ed46afda755e8af..1235a474bde9128108a32f29639932c1c17f8787 100644
--- a/media/base/android/java/src/org/chromium/media/MediaDrmStorageBridge.java
+++ b/media/base/android/java/src/org/chromium/media/MediaDrmStorageBridge.java
@@ -8,6 +8,7 @@ import android.annotation.TargetApi;
import android.os.Build;
import org.chromium.base.Callback;
+import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
import org.chromium.base.annotations.MainDex;
@@ -37,20 +38,28 @@ class MediaDrmStorageBridge {
// Mime type for the license.
private final String mMimeType;
+ @CalledByNative("PersistentInfo")
+ private static PersistentInfo create(byte[] emeId, byte[] keySetId, String mime) {
+ return new PersistentInfo(emeId, keySetId, mime);
+ }
+
PersistentInfo(byte[] emeId, byte[] keySetId, String mime) {
mEmeId = emeId;
mKeySetId = keySetId;
mMimeType = mime;
}
+ @CalledByNative("PersistentInfo")
byte[] emeId() {
return mEmeId;
}
+ @CalledByNative("PersistentInfo")
byte[] keySetId() {
return mKeySetId;
}
+ @CalledByNative("PersistentInfo")
String mimeType() {
return mMimeType;
}
« no previous file with comments | « no previous file | media/base/android/media_drm_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698