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

Unified Diff: chromecast/public/media/decrypt_context.h

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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/public/media/decrypt_context.h
diff --git a/chromecast/public/media/decrypt_context.h b/chromecast/public/media/decrypt_context.h
index 353ba51bc831992a662eea26906705b054acdb04..05e5a1a02a07b8c3f37b49ec4c5486815d6eafba 100644
--- a/chromecast/public/media/decrypt_context.h
+++ b/chromecast/public/media/decrypt_context.h
@@ -6,6 +6,7 @@
#define CHROMECAST_PUBLIC_MEDIA_DECRYPT_CONTEXT_H_
#include <stdint.h>
+#include <vector>
#include "cast_key_system.h"
@@ -21,10 +22,10 @@ class DecryptContext {
// Get the key system to use for decryption.
virtual CastKeySystem GetKeySystem() = 0;
- // Decrypts the given buffer. Returns true/false for success/failure,
- // and places the decrypted data in |output| if successful.
- // Decrypted data in |output| has the same length as |buffer|.
- virtual bool Decrypt(CastDecoderBuffer* buffer, uint8_t* output) = 0;
+ // Decrypts the given buffer. Returns true/false for success/failure,
+ // and places the decrypted data in output if successful.
+ virtual bool Decrypt(CastDecoderBuffer* buffer,
+ std::vector<uint8_t>* output) = 0;
};
} // namespace media
« no previous file with comments | « chromecast/media/base/decrypt_context_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698