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

Unified Diff: chromecast/media/cma/base/decrypt_config_impl.cc

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.cc
diff --git a/chromecast/media/cma/base/decrypt_config_impl.cc b/chromecast/media/cma/base/decrypt_config_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a755436ecbd12bf9f1d3c956ae5a9caaec2be696
--- /dev/null
+++ b/chromecast/media/cma/base/decrypt_config_impl.cc
@@ -0,0 +1,31 @@
+// 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.
+
+#include "chromecast/media/cma/base/decrypt_config_impl.h"
+
+namespace chromecast {
+namespace media {
+
+DecryptConfigImpl::DecryptConfigImpl(
+ const std::string& key_id,
+ const std::string& iv,
+ const std::vector<SubsampleEntry>& subsamples)
+ : key_id_(key_id), iv_(iv), subsamples_(subsamples) {}
+
+DecryptConfigImpl::~DecryptConfigImpl() {}
+
+const std::string& DecryptConfigImpl::key_id() const {
+ return key_id_;
+}
+
+const std::string& DecryptConfigImpl::iv() const {
+ return iv_;
+}
+
+const std::vector<SubsampleEntry>& DecryptConfigImpl::subsamples() const {
+ return subsamples_;
+}
+
+} // namespace media
+} // namespace chromecast

Powered by Google App Engine
This is Rietveld 408576698