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

Unified Diff: webkit/media/supported_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: 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
Index: webkit/media/supported_key_systems.h
diff --git a/webkit/media/supported_key_systems.h b/webkit/media/supported_key_systems.h
new file mode 100644
index 0000000000000000000000000000000000000000..7fc5e7b0b2ed2072f774cfd9272c85615d7357c6
--- /dev/null
+++ b/webkit/media/supported_key_systems.h
@@ -0,0 +1,36 @@
+// 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_SUPPORTED_KEY_SYSTEMS_IMPL_H_
+#define WEBKIT_MEDIA_SUPPORTED_KEY_SYSTEMS_IMPL_H_
+
+//#include "base/compiler_specific.h"
scherkus (not reviewing) 2012/04/12 20:18:41 ??
ddorwin 2012/04/12 23:41:23 Done.
+#include <string>
+#include <vector>
+
+namespace WebKit {
+class WebString;
+}
+
+namespace webkit_media {
+
+class SupportedKeySystems {
scherkus (not reviewing) 2012/04/12 20:18:41 this might as well be a namespace for now as the c
ddorwin 2012/04/12 23:41:23 Done.
+ public:
+ static bool isKeySystemSupported(const WebKit::WebString& keySystem);
+
+ static bool IsSupportedKeySystemWithMediaMimeType(
+ const std::string& mime_type,
+ const std::vector<std::string>& codecs,
+ const std::string& key_system);
+
+ private:
+ static bool IsSupportedKeySystemWithContainerAndCodec(
scherkus (not reviewing) 2012/04/12 20:18:41 nit: might as well move this into the .cc
ddorwin 2012/04/12 23:41:23 Done.
+ const std::string& mime_type,
+ const std::string& codec,
+ const std::string& key_system);
+};
+
+} // namespace webkit_media
+
+#endif // WEBKIT_MEDIA_SUPPORTED_KEY_SYSTEMS_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698