Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3722c328 authored by Yuncheol Heo's avatar Yuncheol Heo Committed by Android (Google) Code Review
Browse files

Merge "Add a permission resource for the protected media id."

parents 81c71c59 93415a27
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -35283,6 +35283,7 @@ package android.webkit {
    method public abstract long getResources();
    method public abstract void grant(long);
    field public static final long RESOURCE_AUDIO_CAPTURE = 4L; // 0x4L
    field public static final long RESOURCE_PROTECTED_MEDIA_ID = 8L; // 0x8L
    field public static final long RESOURCE_VIDEO_CAPTURE = 2L; // 0x2L
  }
+6 −0
Original line number Diff line number Diff line
@@ -39,6 +39,12 @@ public interface PermissionRequest {
     * Resource belongs to audio capture device, like microphone.
     */
    public final static long RESOURCE_AUDIO_CAPTURE = 1 << 2;
    /**
     * Resource belongs to protected media identifier.
     * After the user grants this resource, the origin can use EME APIs to generate the license
     * requests.
     */
    public final static long RESOURCE_PROTECTED_MEDIA_ID = 1 << 3;

    /**
     * @return the origin of web content which attempt to access the restricted