Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / chromecast / media / base / key_systems_common.h
blob4ab8ea75dec72e93fe5252551e6aa4592c02f0d7
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
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_
6 #define CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_
8 #include <string>
10 namespace chromecast {
11 namespace media {
13 #if defined(PLAYREADY_CDM_AVAILABLE)
14 extern const char kChromecastPlayreadyKeySystem[];
15 #endif // defined(PLAYREADY_CDM_AVAILABLE)
17 enum CastKeySystem {
18 KEY_SYSTEM_NONE = 0,
19 KEY_SYSTEM_CLEAR_KEY,
20 KEY_SYSTEM_PLAYREADY,
21 KEY_SYSTEM_WIDEVINE
24 // Translates a key system string into a CastKeySystem, calling into the
25 // platform for known key systems if needed.
26 CastKeySystem GetKeySystemByName(const std::string& key_system_name);
28 // Translates a platform-specific key system string into a CastKeySystem.
29 // TODO(gunsch): Remove when prefixed EME is removed.
30 CastKeySystem GetPlatformKeySystemByName(const std::string& key_system_name);
32 } // namespace media
33 } // namespace chromecast
35 #endif // CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_