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

Unified Diff: chromecast/media/cma/pipeline/decrypt_util.h

Issue 741863002: Chromecast: adds a media pipeline feeding data to CMA device backends. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cma-cdm
Patch Set: address nits, merge Pause/Flush Created 6 years, 1 month 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
« no previous file with comments | « chromecast/media/cma/pipeline/av_pipeline_impl.cc ('k') | chromecast/media/cma/pipeline/decrypt_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/pipeline/decrypt_util.h
diff --git a/chromecast/media/cma/pipeline/decrypt_util.h b/chromecast/media/cma/pipeline/decrypt_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..5a59afc86486897b693cce2fee2a2c1e4569ae92
--- /dev/null
+++ b/chromecast/media/cma/pipeline/decrypt_util.h
@@ -0,0 +1,31 @@
+// Copyright 2014 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_PIPELINE_DECRYPT_UTIL_H_
+#define CHROMECAST_MEDIA_CMA_PIPELINE_DECRYPT_UTIL_H_
+
+#include "base/memory/ref_counted.h"
+
+namespace crypto {
+class SymmetricKey;
+}
+
+namespace chromecast {
+namespace media {
+
+class DecoderBufferBase;
+
+// Create a new buffer which corresponds to the clear version of |buffer|.
+// Note: the memory area corresponding to the ES data of the new buffer
+// is the same as the ES data of |buffer| (for efficiency).
+// After the function is called, |buffer| is left in a inconsistent state
+// in the sense it has some decryption info but the ES data is now in clear.
+scoped_refptr<DecoderBufferBase> DecryptDecoderBuffer(
+ const scoped_refptr<DecoderBufferBase>& buffer,
+ crypto::SymmetricKey* key);
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_CMA_PIPELINE_DECRYPT_UTIL_H_
« no previous file with comments | « chromecast/media/cma/pipeline/av_pipeline_impl.cc ('k') | chromecast/media/cma/pipeline/decrypt_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698