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

Side by Side Diff: chromecast/media/cma/base/cast_decrypt_config_impl.h

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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 unified diff | Download patch
OLDNEW
(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_CAST_DECRYPT_CONFIG_IMPL_H_
6 #define CHROMECAST_MEDIA_CMA_BASE_CAST_DECRYPT_CONFIG_IMPL_H_
7
8 #include "chromecast/public/media/cast_decrypt_config.h"
9
10 namespace media {
11 class DecryptConfig;
12 }
13
14 namespace chromecast {
15 namespace media {
16
17 // Contains all information that a decryptor needs to decrypt a media sample.
18 class CastDecryptConfigImpl : public CastDecryptConfig {
19 public:
20 CastDecryptConfigImpl(const ::media::DecryptConfig& config);
21 CastDecryptConfigImpl(const std::string& key_id,
22 const std::string& iv,
23 const std::vector<SubsampleEntry>& subsamples);
24 ~CastDecryptConfigImpl() override;
25
26 const std::string& key_id() const override;
27 const std::string& iv() const override;
28 const std::vector<SubsampleEntry>& subsamples() const override;
29
30 private:
31 std::string key_id_;
32 std::string iv_;
33 std::vector<SubsampleEntry> subsamples_;
34 };
35
36 } // namespace media
37 } // namespace chromecast
38
39 #endif // CHROMECAST_MEDIA_CMA_BASE_CAST_DECRYPT_CONFIG_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698