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

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

Issue 1137993004: Revert of Restrict use of hardware-secure codecs based on the RendererPreference. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setsecurity
Patch Set: Created 5 years, 7 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/base/key_systems.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // The configuration option is supported, but the user experience may be 122 // The configuration option is supported, but the user experience may be
123 // improved if a distinctive identifier is available. 123 // improved if a distinctive identifier is available.
124 IDENTIFIER_RECOMMENDED, 124 IDENTIFIER_RECOMMENDED,
125 // The configuration option prevents use of persistent state. 125 // The configuration option prevents use of persistent state.
126 PERSISTENCE_NOT_ALLOWED, 126 PERSISTENCE_NOT_ALLOWED,
127 // The configuration option is supported if persistent state is available. 127 // The configuration option is supported if persistent state is available.
128 PERSISTENCE_REQUIRED, 128 PERSISTENCE_REQUIRED,
129 // The configuration option is supported if both a distinctive identifier and 129 // The configuration option is supported if both a distinctive identifier and
130 // persistent state are available. 130 // persistent state are available.
131 IDENTIFIER_AND_PERSISTENCE_REQUIRED, 131 IDENTIFIER_AND_PERSISTENCE_REQUIRED,
132 // The configuration option prevents use of hardware-secure codecs. 132 #if defined(OS_ANDROID)
133 // This rule only has meaning on platforms that distinguish hardware-secure 133 // The configuration option is supported if no hardware-secure codecs are used
134 // codecs (ie. Android). 134 // (as they would be for video if secure surfaces are enabled).
135 SECURE_CODECS_NOT_ALLOWED, 135 SECURE_CODECS_NOT_ALLOWED,
136 // The configuration option is supported if hardware-secure codecs are used. 136 // The configuration option is supported if only hardware-secure codecs are
137 // This rule only has meaning on platforms that distinguish hardware-secure 137 // used. This implies that secure surfaces (hole-punching) are required for
138 // codecs (ie. Android). 138 // video.
139 SECURE_CODECS_REQUIRED, 139 SECURE_CODECS_REQUIRED,
140 #endif // defined(OS_ANDROID)
140 // The configuration option is supported without conditions. 141 // The configuration option is supported without conditions.
141 SUPPORTED, 142 SUPPORTED,
142 }; 143 };
143 144
144 } // namespace media 145 } // namespace media
145 146
146 #endif // MEDIA_BASE_EME_CONSTANTS_H_ 147 #endif // MEDIA_BASE_EME_CONSTANTS_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/base/key_systems.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698