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

Unified Diff: media/base/encryption_scheme.h

Issue 2423703002: media: Use native CipherMode enum type in media mojo interfaces (Closed)
Patch Set: Created 4 years, 2 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 | media/base/ipc/media_param_traits_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/encryption_scheme.h
diff --git a/media/base/encryption_scheme.h b/media/base/encryption_scheme.h
index 37bea6710d264390a5b74cd920e10951ff34eba7..ae40ba23e4ec780b7f6fce40b59eea37cb5f0d01 100644
--- a/media/base/encryption_scheme.h
+++ b/media/base/encryption_scheme.h
@@ -6,6 +6,7 @@
#define MEDIA_BASE_ENCRYPTION_SCHEME_H_
#include <stdint.h>
+#include <functional>
#include "media/base/media_export.h"
@@ -76,4 +77,15 @@ class MEDIA_EXPORT EncryptionScheme {
} // namespace media
+namespace std {
+
+template <>
+struct hash<media::EncryptionScheme::CipherMode> {
+ std::size_t operator()(
+ const media::EncryptionScheme::CipherMode& mode) const {
+ return static_cast<std::size_t>(mode);
+ }
+};
+} // namespace std
xhwang 2016/10/15 09:13:59 +rockot I have to add this, otherwise, the linker
Ken Rockot(use gerrit already) 2016/10/15 15:35:29 I think this will do it: https://codereview.chromi
+
#endif // MEDIA_BASE_ENCRYPTION_SCHEME_H_
« no previous file with comments | « no previous file | media/base/ipc/media_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698