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

Unified Diff: chromecast/media/cma/base/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: Unit test + android fixes Created 5 years, 5 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
Index: chromecast/media/cma/base/decrypt_config_impl.h
diff --git a/chromecast/media/cma/base/decrypt_config_impl.h b/chromecast/media/cma/base/decrypt_config_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..fde1570abf1b11c83281c938278ecf8170ed2099
--- /dev/null
+++ b/chromecast/media/cma/base/decrypt_config_impl.h
@@ -0,0 +1,34 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMECAST_MEDIA_CMA_BASE_DECRYPT_CONFIG_IMPL_H_
+#define CHROMECAST_MEDIA_CMA_BASE_DECRYPT_CONFIG_IMPL_H_
+
+#include "chromecast/public/media/decrypt_config.h"
+
+namespace chromecast {
+namespace media {
+
+// Contains all information that a decryptor needs to decrypt a media sample.
+class DecryptConfigImpl : public DecryptConfig {
+ public:
+ 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
+ const std::string& iv,
+ const std::vector<SubsampleEntry>& subsamples);
+ ~DecryptConfigImpl() override;
+
+ const std::string& key_id() const override;
+ const std::string& iv() const override;
+ const std::vector<SubsampleEntry>& subsamples() const override;
+
+ private:
+ std::string key_id_;
+ std::string iv_;
+ std::vector<SubsampleEntry> subsamples_;
+};
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_CMA_BASE_DECRYPT_CONFIG_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698