OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROMECAST_MEDIA_CMA_BASE_DECRYPT_CONFIG_IMPL_H_ | |
6 #define CHROMECAST_MEDIA_CMA_BASE_DECRYPT_CONFIG_IMPL_H_ | |
7 | |
8 #include "chromecast/public/media/decrypt_config.h" | |
9 | |
10 namespace chromecast { | |
11 namespace media { | |
12 | |
13 // Contains all information that a decryptor needs to decrypt a media sample. | |
14 class DecryptConfigImpl : public DecryptConfig { | |
15 public: | |
16 DecryptConfigImpl(const std::string& key_id, | |
gunsch
2015/07/27 17:14:49
WDYT about having the ctor instead be DecryptConfi
halliwell
2015/07/28 02:19:35
I've made a constructor that takes that, in respon
| |
17 const std::string& iv, | |
18 const std::vector<SubsampleEntry>& subsamples); | |
19 ~DecryptConfigImpl() override; | |
20 | |
21 const std::string& key_id() const override; | |
22 const std::string& iv() const override; | |
23 const std::vector<SubsampleEntry>& subsamples() const override; | |
24 | |
25 private: | |
26 std::string key_id_; | |
27 std::string iv_; | |
28 std::vector<SubsampleEntry> subsamples_; | |
29 }; | |
30 | |
31 } // namespace media | |
32 } // namespace chromecast | |
33 | |
34 #endif // CHROMECAST_MEDIA_CMA_BASE_DECRYPT_CONFIG_IMPL_H_ | |
OLD | NEW |