media_drm_key_type.h 681 B

12345678910111213141516171819202122232425
  1. // Copyright 2018 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. #ifndef MEDIA_BASE_MEDIA_DRM_KEY_TYPE_H_
  5. #define MEDIA_BASE_MEDIA_DRM_KEY_TYPE_H_
  6. #include <stdint.h>
  7. namespace media {
  8. // These must be in sync with Android MediaDrm KEY_TYPE_XXX constants, except
  9. // UNKNOWN and MAX:
  10. // https://developer.android.com/reference/android/media/MediaDrm.html#KEY_TYPE_OFFLINE
  11. enum class MediaDrmKeyType : uint32_t {
  12. UNKNOWN = 0,
  13. MIN = UNKNOWN,
  14. STREAMING = 1,
  15. OFFLINE = 2,
  16. RELEASE = 3,
  17. MAX = RELEASE,
  18. };
  19. } // namespace media
  20. #endif // MEDIA_BASE_MEDIA_DRM_KEY_TYPE_H_