OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_EME_CONSTANTS_H_ | 5 #ifndef MEDIA_BASE_EME_CONSTANTS_H_ |
6 #define MEDIA_BASE_EME_CONSTANTS_H_ | 6 #define MEDIA_BASE_EME_CONSTANTS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 namespace media { | 10 namespace media { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 EME_CODEC_MP4_ALL = (EME_CODEC_MP4_AUDIO_ALL | EME_CODEC_MP4_VIDEO_ALL), | 42 EME_CODEC_MP4_ALL = (EME_CODEC_MP4_AUDIO_ALL | EME_CODEC_MP4_VIDEO_ALL), |
43 EME_CODEC_ALL = (EME_CODEC_WEBM_ALL | EME_CODEC_MP4_ALL), | 43 EME_CODEC_ALL = (EME_CODEC_WEBM_ALL | EME_CODEC_MP4_ALL), |
44 #else | 44 #else |
45 EME_CODEC_ALL = EME_CODEC_WEBM_ALL, | 45 EME_CODEC_ALL = EME_CODEC_WEBM_ALL, |
46 #endif // defined(USE_PROPRIETARY_CODECS) | 46 #endif // defined(USE_PROPRIETARY_CODECS) |
47 }; | 47 }; |
48 | 48 |
49 typedef uint32_t SupportedInitDataTypes; | 49 typedef uint32_t SupportedInitDataTypes; |
50 typedef uint32_t SupportedCodecs; | 50 typedef uint32_t SupportedCodecs; |
51 | 51 |
52 enum EmeSessionTypeSupport { | |
53 // Invalid value. | |
54 EME_SESSION_TYPE_SUPPORT_NOT_DECLARED, | |
ddorwin
2015/02/19 01:41:33
nit: This name makes it seem valid. INVALID or som
sandersd (OOO until July 31)
2015/02/19 21:08:34
Done.
| |
55 // The session type is not available. | |
ddorwin
2015/02/19 01:41:33
s/available/supported/?
and line 57
sandersd (OOO until July 31)
2015/02/19 21:08:34
Done.
| |
56 EME_SESSION_TYPE_NOT_SUPPORTED, | |
57 // The session type is available if the encrypted media permission is granted. | |
58 EME_SESSION_TYPE_SUPPORTED_WITH_PERMISSION, | |
59 // The session type is always available. | |
60 EME_SESSION_TYPE_SUPPORTED, | |
61 }; | |
62 | |
63 enum EmeFeatureSupport { | |
64 // Invalid value. | |
65 EME_FEATURE_SUPPORT_NOT_DECLARED, | |
66 // Access to the feature is not supported at all. | |
67 EME_FEATURE_NOT_SUPPORTED, | |
68 // Access to the feature is supported if the encrypted media permission is | |
69 // granted. | |
70 EME_FEATURE_SUPPORTED_WITH_PERMISSION, | |
ddorwin
2015/02/19 04:23:41
s/SUPPORTED/REQUESTABLE/ or something like that to
| |
71 // Access to the feature is available if requested. | |
72 EME_FEATURE_SUPPORTED, | |
73 // Access to the feature cannot be blocked. | |
74 EME_FEATURE_ALWAYS_AVAILABLE, | |
ddorwin
2015/02/19 01:41:33
s/AVAILABLE/USED/ ?
sandersd (OOO until July 31)
2015/02/19 21:08:34
Done.
| |
75 }; | |
76 | |
77 enum EmeFeatureRequirement { | |
78 EME_FEATURE_NOT_ALLOWED, | |
79 EME_FEATURE_OPTIONAL, | |
80 EME_FEATURE_REQUIRED, | |
81 }; | |
82 | |
52 } // namespace media | 83 } // namespace media |
53 | 84 |
54 #endif // MEDIA_BASE_EME_CONSTANTS_H_ | 85 #endif // MEDIA_BASE_EME_CONSTANTS_H_ |
OLD | NEW |