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

Unified Diff: media/base/key_system_names.h

Issue 1921823003: media: Move key_system_names to media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 | « media/base/BUILD.gn ('k') | media/base/key_system_names.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/key_system_names.h
diff --git a/media/cdm/key_system_names.h b/media/base/key_system_names.h
similarity index 66%
rename from media/cdm/key_system_names.h
rename to media/base/key_system_names.h
index 8b231718fffa89d8620f0751cc68783cd229ebac..0ba1934a275c658f9cb4d3460382a8ffc302ff0d 100644
--- a/media/cdm/key_system_names.h
+++ b/media/base/key_system_names.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MEDIA_CDM_KEY_SYSTEM_NAMES_H_
-#define MEDIA_CDM_KEY_SYSTEM_NAMES_H_
+#ifndef MEDIA_BASE_KEY_SYSTEM_NAMES_H_
+#define MEDIA_BASE_KEY_SYSTEM_NAMES_H_
#include <string>
@@ -11,13 +11,8 @@
namespace media {
-// TODO(jrummell): Change other uses of Clear Key to use this common value.
-
-// The key system name for Clear Key.
-MEDIA_EXPORT extern const char kClearKey[];
-
-// The key system name for External Clear Key.
-MEDIA_EXPORT extern const char kExternalClearKey[];
+// TODO(jrummell): This file should be folded into key_systems.cc as that is
+// the primary user of these functions. http://crbug.com/606579.
// Returns true if |key_system| is Clear Key, false otherwise.
MEDIA_EXPORT bool IsClearKey(const std::string& key_system);
@@ -31,4 +26,4 @@ MEDIA_EXPORT bool IsExternalClearKey(const std::string& key_system);
} // namespace media
-#endif // MEDIA_CDM_KEY_SYSTEM_NAMES_H_
+#endif // MEDIA_BASE_KEY_SYSTEM_NAMES_H_
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/key_system_names.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698