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

Unified Diff: webkit/media/crypto/key_systems.h

Issue 10704241: Add PpapiDecryptor which wraps a CDM plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve comments and rebase. Created 8 years, 5 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 | « no previous file | webkit/media/crypto/key_systems.cc » ('j') | webkit/media/crypto/key_systems.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/crypto/key_systems.h
diff --git a/webkit/media/crypto/key_systems.h b/webkit/media/crypto/key_systems.h
index 1822507818f11c5510d711a46ed83c3d186ae969..df49556765fc0825b66b0cc1f64c9c16bb5bead6 100644
--- a/webkit/media/crypto/key_systems.h
+++ b/webkit/media/crypto/key_systems.h
@@ -14,11 +14,6 @@ namespace WebKit {
class WebString;
}
-namespace media {
-class Decryptor;
-class DecryptorClient;
-}
-
namespace webkit_media {
// Returns whether |key_sytem| is supported at all.
@@ -32,10 +27,12 @@ bool IsSupportedKeySystemWithMediaMimeType(
const std::vector<std::string>& codecs,
const std::string& key_system);
-// Creates and returns a decryptor that corresponds to the |key_system|.
-// Returns NULL if the |key_system| is not supported.
-scoped_ptr<media::Decryptor> CreateDecryptor(const std::string& key_system,
- media::DecryptorClient* client);
+// Returns whether AesDecryptor can be used for the given |key_system|.
+bool CanUseAesDecryptor(const std::string& key_system);
+
+// Returns the plugin type given a |key_system|.
+// Returns NULL if no plugin type is found for the given |key_system|.
+const char* GetPluginType(const std::string& key_system);
ddorwin 2012/07/19 01:12:34 Who owns the return value? Should we just use std:
xhwang 2012/07/19 15:54:34 Ok, search "const char* Get" gives me 216 results
} // namespace webkit_media
« no previous file with comments | « no previous file | webkit/media/crypto/key_systems.cc » ('j') | webkit/media/crypto/key_systems.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698