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

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

Issue 568243002: Adds initial key systems support for Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed non-CC playready strings, unprefixed clearkey hack Created 6 years, 3 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
(Empty)
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.
4
5 #ifndef CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_
6 #define CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_
7
8 #include <string>
9
10 namespace chromecast {
11 namespace media {
12
13 extern const char kChromecastPlayreadyKeySystem[];
14
15 enum CastKeySystem {
16 KEY_SYSTEM_NONE = 0,
17 KEY_SYSTEM_CLEAR_KEY,
18 KEY_SYSTEM_PLAYREADY,
19 KEY_SYSTEM_WIDEVINE
20 };
21
22 // Translates a key system string into a CastKeySystem, calling into the
23 // platform for known key systems if needed.
ddorwin 2014/09/16 18:15:00 I think the text after the comma is incorrect base
gunsch 2014/09/16 18:55:33 Comment was correct, fixed the implementation :)
24 CastKeySystem GetKeySystemByName(const std::string& key_system_name);
25
26 // Translates a platform-specific key system string into a CastKeySystem.
ddorwin 2014/09/16 18:15:00 TODO: Remove when prefixed EME is removed?
gunsch 2014/09/16 18:55:33 Done.
27 CastKeySystem GetPlatformKeySystemByName(const std::string& key_system_name);
28
29 } // namespace media
30 } // namespace chromecast
31
32 #endif // CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698