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

Unified Diff: chromecast/media/base/decrypt_context_impl.cc

Issue 1967803003: [Chromecast] Change DecryptContext::Decrypt back (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « chromecast/media/base/decrypt_context_impl.h ('k') | chromecast/public/media/decrypt_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/base/decrypt_context_impl.cc
diff --git a/chromecast/media/base/decrypt_context_impl.cc b/chromecast/media/base/decrypt_context_impl.cc
index 683f11de33c22ecbcdae34ddebce702044a16813..945ba9672a3f7ecbe80a881c20c97309d73538f4 100644
--- a/chromecast/media/base/decrypt_context_impl.cc
+++ b/chromecast/media/base/decrypt_context_impl.cc
@@ -4,6 +4,10 @@
#include "chromecast/media/base/decrypt_context_impl.h"
+#include <vector>
+
+#include "chromecast/public/media/cast_decoder_buffer.h"
+
namespace chromecast {
namespace media {
@@ -16,6 +20,12 @@ CastKeySystem DecryptContextImpl::GetKeySystem() {
return key_system_;
}
+bool DecryptContextImpl::Decrypt(CastDecoderBuffer* buffer,
+ std::vector<uint8_t>* output) {
+ output->resize(buffer->data_size());
+ return Decrypt(buffer, output->data());
+}
+
bool DecryptContextImpl::Decrypt(CastDecoderBuffer* buffer, uint8_t* output) {
return false;
}
« no previous file with comments | « chromecast/media/base/decrypt_context_impl.h ('k') | chromecast/public/media/decrypt_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698