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

Unified 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: address last comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/media/DEPS ('k') | chromecast/media/base/key_systems_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/base/key_systems_common.h
diff --git a/chromecast/media/base/key_systems_common.h b/chromecast/media/base/key_systems_common.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c0906b9f062cfc3055122d1c9eb4162ed30c2da
--- /dev/null
+++ b/chromecast/media/base/key_systems_common.h
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_
+#define CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_
+
+#include <string>
+
+namespace chromecast {
+namespace media {
+
+extern const char kChromecastPlayreadyKeySystem[];
+
+enum CastKeySystem {
+ KEY_SYSTEM_NONE = 0,
+ KEY_SYSTEM_CLEAR_KEY,
+ KEY_SYSTEM_PLAYREADY,
+ KEY_SYSTEM_WIDEVINE
+};
+
+// Translates a key system string into a CastKeySystem, calling into the
+// platform for known key systems if needed.
+CastKeySystem GetKeySystemByName(const std::string& key_system_name);
+
+// Translates a platform-specific key system string into a CastKeySystem.
+// TODO(gunsch): Remove when prefixed EME is removed.
+CastKeySystem GetPlatformKeySystemByName(const std::string& key_system_name);
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_
« no previous file with comments | « chromecast/media/DEPS ('k') | chromecast/media/base/key_systems_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698