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..0ee141b411e48d5ebd3d7e01113bc559e9fcb714 |
--- /dev/null |
+++ b/chromecast/media/base/key_systems_common.h |
@@ -0,0 +1,27 @@ |
+// 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_ |
ddorwin
2014/09/13 03:27:06
common? Is this also used in the browser process o
gunsch
2014/09/15 21:43:38
Yes. We communicate CDM information over IPC, then
|
+#define CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_ |
+ |
+#include <string> |
+ |
+namespace media { |
lcwu1
2014/09/15 18:09:50
s/media/chromecast
gunsch
2014/09/15 21:43:38
Done.
|
+ |
+extern const char* kPlayreadyKeySystems[]; |
+extern const char kClearKeySystem[]; |
+extern const char kUnsupportedClearKeySystem[]; |
+ |
+enum CastKeySystem { |
+ KEY_SYSTEM_NONE = 0, |
+ KEY_SYSTEM_CLEAR_KEY, |
+ KEY_SYSTEM_PLAYREADY, |
ddorwin
2014/09/13 03:27:06
To avoid confusion, be explicit about CHROMECAST_P
gunsch
2014/09/15 21:43:38
Would prefer to not. This enum is only for use wit
|
+ KEY_SYSTEM_WIDEVINE |
+}; |
+ |
+CastKeySystem GetKeySystemByName(const std::string& key_system_name); |
ddorwin
2014/09/13 03:27:06
What is the enum used for? I don't see it in this
gunsch
2014/09/15 21:43:38
No, not yet in this patch. This enum is used for o
ddorwin
2014/09/15 22:50:53
FYI, such an enum could be generally useful, espec
gunsch
2014/09/16 16:57:59
Acknowledged.
|
+ |
+} // namespace media |
+ |
+#endif // CHROMECAST_MEDIA_BASE_KEY_SYSTEMS_COMMON_H_ |