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

Side by Side Diff: media/base/eme_constants.h

Issue 923283002: Implement checks for distinctiveIdentifier and persistentState in requestMediaKeySystemAccess(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
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 28 matching lines...) Expand all
39 EME_CODEC_MP4_AUDIO_ALL = EME_CODEC_MP4_AAC, 39 EME_CODEC_MP4_AUDIO_ALL = EME_CODEC_MP4_AAC,
40 EME_CODEC_MP4_AVC1 = 1 << 5, 40 EME_CODEC_MP4_AVC1 = 1 << 5,
41 EME_CODEC_MP4_VIDEO_ALL = EME_CODEC_MP4_AVC1, 41 EME_CODEC_MP4_VIDEO_ALL = EME_CODEC_MP4_AVC1,
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 enum EmeSessionType {
50 EME_SESSION_TYPE_NONE = 0,
51 EME_SESSION_TYPE_TEMPORARY = 1 << 0,
52 EME_SESSION_TYPE_PERSISTENT_LICENSE = 1 << 1,
53 EME_SESSION_TYPE_PERSISTENT_RELEASE_MESSAGE = 1 << 2,
54 };
55
49 typedef uint32_t SupportedInitDataTypes; 56 typedef uint32_t SupportedInitDataTypes;
50 typedef uint32_t SupportedCodecs; 57 typedef uint32_t SupportedCodecs;
58 typedef uint32_t SupportedSessionTypes;
59
60 enum EmeRequirement {
61 EME_REQUIREMENT_NOT_ALLOWED = 1 << 0,
ddorwin 2015/02/17 20:56:47 Would it make sense (and help with the code) to ha
sandersd (OOO until July 31) 2015/02/18 23:41:17 Done.
62 EME_REQUIREMENT_REQUIRED = 1 << 1,
63 EME_REQUIREMENT_OPTIONAL =
ddorwin 2015/02/17 20:56:47 Embedders should never use this, right? Maybe it s
sandersd (OOO until July 31) 2015/02/18 23:41:17 Acknowledged.
64 EME_REQUIREMENT_NOT_ALLOWED | EME_REQUIREMENT_REQUIRED,
65 };
51 66
52 } // namespace media 67 } // namespace media
53 68
54 #endif // MEDIA_BASE_EME_CONSTANTS_H_ 69 #endif // MEDIA_BASE_EME_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698