diff --git a/library/core/src/main/java/com/google/android/exoplayer2/drm/CryptoResource.java b/library/core/src/main/java/com/google/android/exoplayer2/drm/DecryptionResource.java similarity index 78% rename from library/core/src/main/java/com/google/android/exoplayer2/drm/CryptoResource.java rename to library/core/src/main/java/com/google/android/exoplayer2/drm/DecryptionResource.java index 3e4701ac08..34d3c3985c 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/drm/CryptoResource.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/drm/DecryptionResource.java @@ -20,22 +20,23 @@ package com.google.android.exoplayer2.drm; * * @param The reference type with which to make {@link Owner#onLastReferenceReleased} calls. */ -public abstract class CryptoResource> { +public abstract class DecryptionResource> { /** - * Implemented by the class in charge of managing a {@link CryptoResource resource's} lifecycle. + * Implemented by the class in charge of managing a {@link DecryptionResource resource's} + * lifecycle. */ - public interface Owner> { + public interface Owner> { /** - * Called when the last reference to a {@link CryptoResource} is {@link #releaseReference() + * Called when the last reference to a {@link DecryptionResource} is {@link #releaseReference() * released}. */ - void onLastReferenceReleased(CryptoResource resource); + void onLastReferenceReleased(DecryptionResource resource); } // TODO: Consider adding a handler on which the owner should be called. - private final CryptoResource.Owner owner; + private final DecryptionResource.Owner owner; private int referenceCount; /** @@ -43,7 +44,7 @@ public abstract class CryptoResource> { * * @param owner The owner of this instance. */ - public CryptoResource(Owner owner) { + public DecryptionResource(Owner owner) { this.owner = owner; referenceCount = 0; }