Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chromecast / media / base / key_systems_common.h
blob53e323c60109a3007606bd6dcea981a551666b4e
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>
9 #include <utility>
10 #include <vector>
12 #include "base/compiler_specific.h"
13 #include "chromecast/public/media/cast_key_system.h"
14 #include "media/base/android/media_client_android.h"
16 namespace chromecast {
17 namespace media {
19 #if defined(PLAYREADY_CDM_AVAILABLE)
20 extern const char kChromecastPlayreadyKeySystem[];
21 #endif // defined(PLAYREADY_CDM_AVAILABLE)
23 // Translates a key system string into a CastKeySystem, calling into the
24 // platform for known key systems if needed.
25 CastKeySystem GetKeySystemByName(const std::string& key_system_name);
27 // Translates a platform-specific key system string into a CastKeySystem.
28 // TODO(gunsch): Remove when prefixed EME is removed.
29 CastKeySystem GetPlatformKeySystemByName(const std::string& key_system_name);
31 // Translates a platform-specific key system string into a CastKeySystem.
32 // TODO(gunsch): Remove when prefixed EME is removed.
33 #if defined(OS_ANDROID)
34 std::vector<::media::MediaClientAndroid::KeySystemUuidMap::value_type>
35 GetPlatformKeySystemUUIDMappings();
36 #endif
38 } // namespace media
39 } // namespace chromecast
41 #endif // CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_