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

Unified Diff: media/cdm/key_system_names.cc

Issue 1132223002: Sanitize data before providing it to the CDM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: windows change Created 5 years, 7 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 | « media/cdm/key_system_names.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/key_system_names.cc
diff --git a/media/cdm/key_system_names.cc b/media/cdm/key_system_names.cc
index f0abaf0574724115cd34d2d8002fb462b093093e..eed84539a6cdf84a18386e1cbd14d8d87039f5d6 100644
--- a/media/cdm/key_system_names.cc
+++ b/media/cdm/key_system_names.cc
@@ -11,6 +11,10 @@ namespace media {
const char kClearKey[] = "org.w3.clearkey";
const char kExternalClearKey[] = "org.chromium.externalclearkey";
+bool IsClearKey(const std::string& key_system) {
+ return key_system == kClearKey;
+}
+
bool IsParentKeySystemOf(const std::string& parent_key_system,
const std::string& key_system) {
std::string prefix = parent_key_system + '.';
« no previous file with comments | « media/cdm/key_system_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698