Chromium Code Reviews| Index: media/base/decrypt_config.h |
| diff --git a/media/base/decrypt_config.h b/media/base/decrypt_config.h |
| index 86480aa9eed29fceac570d0bdc3d9b5a29e1e19e..febd0fe866968a244379ef2d875656426970e06c 100644 |
| --- a/media/base/decrypt_config.h |
| +++ b/media/base/decrypt_config.h |
| @@ -24,6 +24,9 @@ namespace media { |
| // result, and then copying each byte from the decrypted block over the |
| // position of the corresponding encrypted byte. |
| struct SubsampleEntry { |
| + SubsampleEntry() : clear_bytes(0), cypher_bytes(0) {} |
|
ddorwin
2014/11/25 20:47:48
Do we need this? It seems like something that shou
xhwang
2014/11/25 22:13:44
This is needed as the default ctor because we need
|
| + SubsampleEntry(uint32 clear_bytes, uint32 cypher_bytes) |
| + : clear_bytes(clear_bytes), cypher_bytes(cypher_bytes) {} |
| uint32 clear_bytes; |
| uint32 cypher_bytes; |
| }; |
| @@ -50,6 +53,9 @@ class MEDIA_EXPORT DecryptConfig { |
| const std::string& iv() const { return iv_; } |
| const std::vector<SubsampleEntry>& subsamples() const { return subsamples_; } |
| + // Returns true if all fields in |config| match this config. |
| + bool Matches(const DecryptConfig& config) const; |
| + |
| private: |
| const std::string key_id_; |