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

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

Issue 962793005: Adds MediaClientAndroid to support embedder/MediaDrmBridge interaction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: overhaul: creates MediaClientAndroid (browser-side client), eliminates Java-based MediaDrmBridge ke… Created 5 years, 8 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 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 #include <utility>
10 #include <vector>
11
12 #include "base/compiler_specific.h"
9 13
10 namespace chromecast { 14 namespace chromecast {
11 namespace media { 15 namespace media {
12 16
13 #if defined(PLAYREADY_CDM_AVAILABLE) 17 #if defined(PLAYREADY_CDM_AVAILABLE)
14 extern const char kChromecastPlayreadyKeySystem[]; 18 extern const char kChromecastPlayreadyKeySystem[];
15 #endif // defined(PLAYREADY_CDM_AVAILABLE) 19 #endif // defined(PLAYREADY_CDM_AVAILABLE)
16 20
17 enum CastKeySystem { 21 enum CastKeySystem {
18 KEY_SYSTEM_NONE = 0, 22 KEY_SYSTEM_NONE = 0,
19 KEY_SYSTEM_CLEAR_KEY, 23 KEY_SYSTEM_CLEAR_KEY,
20 KEY_SYSTEM_PLAYREADY, 24 KEY_SYSTEM_PLAYREADY,
21 KEY_SYSTEM_WIDEVINE 25 KEY_SYSTEM_WIDEVINE
22 }; 26 };
23 27
24 // Translates a key system string into a CastKeySystem, calling into the 28 // Translates a key system string into a CastKeySystem, calling into the
25 // platform for known key systems if needed. 29 // platform for known key systems if needed.
26 CastKeySystem GetKeySystemByName(const std::string& key_system_name); 30 CastKeySystem GetKeySystemByName(const std::string& key_system_name);
27 31
28 // Translates a platform-specific key system string into a CastKeySystem. 32 // Translates a platform-specific key system string into a CastKeySystem.
29 // TODO(gunsch): Remove when prefixed EME is removed. 33 // TODO(gunsch): Remove when prefixed EME is removed.
30 CastKeySystem GetPlatformKeySystemByName(const std::string& key_system_name); 34 CastKeySystem GetPlatformKeySystemByName(const std::string& key_system_name);
31 35
36 // Translates a platform-specific key system string into a CastKeySystem.
37 // TODO(gunsch): Remove when prefixed EME is removed.
38 #if defined(OS_ANDROID)
39 std::vector<std::pair<std::string, std::vector<uint8_t>>>
40 GetPlatformKeySystemUUIDMappings();
41 #endif
42
32 } // namespace media 43 } // namespace media
33 } // namespace chromecast 44 } // namespace chromecast
34 45
35 #endif // CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_ 46 #endif // CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698