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

Side by Side Diff: chromecast/media/base/key_systems_common.h

Issue 605923002: Chromecast: guard PlayReady with C-define to prevent accidental use. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | chromecast/media/base/key_systems_common.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 CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_ 5 #ifndef CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_
6 #define CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_ 6 #define CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace chromecast { 10 namespace chromecast {
11 namespace media { 11 namespace media {
12 12
13 #if defined(PLAYREADY_CDM_AVAILABLE)
13 extern const char kChromecastPlayreadyKeySystem[]; 14 extern const char kChromecastPlayreadyKeySystem[];
15 #endif // defined(PLAYREADY_CDM_AVAILABLE)
14 16
15 enum CastKeySystem { 17 enum CastKeySystem {
16 KEY_SYSTEM_NONE = 0, 18 KEY_SYSTEM_NONE = 0,
17 KEY_SYSTEM_CLEAR_KEY, 19 KEY_SYSTEM_CLEAR_KEY,
18 KEY_SYSTEM_PLAYREADY, 20 KEY_SYSTEM_PLAYREADY,
19 KEY_SYSTEM_WIDEVINE 21 KEY_SYSTEM_WIDEVINE
20 }; 22 };
21 23
22 // Translates a key system string into a CastKeySystem, calling into the 24 // Translates a key system string into a CastKeySystem, calling into the
23 // platform for known key systems if needed. 25 // platform for known key systems if needed.
24 CastKeySystem GetKeySystemByName(const std::string& key_system_name); 26 CastKeySystem GetKeySystemByName(const std::string& key_system_name);
25 27
26 // Translates a platform-specific key system string into a CastKeySystem. 28 // Translates a platform-specific key system string into a CastKeySystem.
27 // TODO(gunsch): Remove when prefixed EME is removed. 29 // TODO(gunsch): Remove when prefixed EME is removed.
28 CastKeySystem GetPlatformKeySystemByName(const std::string& key_system_name); 30 CastKeySystem GetPlatformKeySystemByName(const std::string& key_system_name);
29 31
30 } // namespace media 32 } // namespace media
31 } // namespace chromecast 33 } // namespace chromecast
32 34
33 #endif // CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_ 35 #endif // CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/media/base/key_systems_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698