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

Unified Diff: webkit/media/key_systems.h

Issue 10020053: Initial implementation of Encrypted Media Extensions in Chrome. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed key_systems namespace Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/simple_webmimeregistry_impl.cc ('k') | webkit/media/key_systems.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/key_systems.h
diff --git a/webkit/media/key_systems.h b/webkit/media/key_systems.h
new file mode 100644
index 0000000000000000000000000000000000000000..dedd279e0184accdee5f5a08ff9c29e75be6c680
--- /dev/null
+++ b/webkit/media/key_systems.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 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 WEBKIT_MEDIA_KEY_SYSTEMS_H_
+#define WEBKIT_MEDIA_KEY_SYSTEMS_H_
+
+#include <string>
+#include <vector>
+
+namespace WebKit {
+class WebString;
+}
+
+namespace webkit_media {
+
+// Returns whether |key_sytem| is supported at all.
+// Call IsSupportedKeySystemWithMediaMimeType() to determine whether a
+// |key_system| supports a specific type of media.
+bool IsSupportedKeySystem(const WebKit::WebString& key_system);
+
+// Returns whether |key_sytem| supports the specified media type and codec(s).
+bool IsSupportedKeySystemWithMediaMimeType(
+ const std::string& mime_type,
+ const std::vector<std::string>& codecs,
+ const std::string& key_system);
+
+} // namespace webkit_media
+
+#endif // WEBKIT_MEDIA_KEY_SYSTEMS_H_
« no previous file with comments | « webkit/glue/simple_webmimeregistry_impl.cc ('k') | webkit/media/key_systems.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698