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

Unified Diff: chromecast/media/base/decrypt_context_impl.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 | « no previous file | chromecast/media/base/decrypt_context_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/base/decrypt_context_impl.h
diff --git a/chromecast/media/base/decrypt_context_impl.h b/chromecast/media/base/decrypt_context_impl.h
index 85bf21b414c89d70991c278b877eb78a51666b5f..0a90272130e2d70b1f5396bafd28756681342054 100644
--- a/chromecast/media/base/decrypt_context_impl.h
+++ b/chromecast/media/base/decrypt_context_impl.h
@@ -19,7 +19,6 @@ namespace media {
// information needed to decrypt frames with a given key id.
// Each CDM should implement this and add fields needed to fully describe a
// decryption context.
-//
class DecryptContextImpl : public DecryptContext {
public:
explicit DecryptContextImpl(CastKeySystem key_system);
@@ -27,7 +26,15 @@ class DecryptContextImpl : public DecryptContext {
// DecryptContext implementation:
CastKeySystem GetKeySystem() override;
- bool Decrypt(CastDecoderBuffer* buffer, uint8_t* output) override;
+ bool Decrypt(CastDecoderBuffer* buffer,
+ std::vector<uint8_t>* output) final;
+
+ // TODO(yucliu): replace DecryptContext::Decrypt with this one in next
+ // public api releasing.
+ // 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;
// Returns whether the data can be decrypted into user memory.
// If the key system doesn't support secure output or the app explicitly
« no previous file with comments | « no previous file | chromecast/media/base/decrypt_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698