Chromium Code Reviews| 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_ |