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

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

Issue 2450563002: [Chromecast] Change DecryptContext Decrypt API (Closed)
Patch Set: Created 4 years, 2 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 e41ff48930cec4a34379fa3779a48a38a768af5f..9b0cce2d8847500a0b42e52dfbd9745185eb25d0 100644
--- a/chromecast/media/base/decrypt_context_impl.h
+++ b/chromecast/media/base/decrypt_context_impl.h
@@ -31,20 +31,8 @@ class DecryptContextImpl : public DecryptContext {
// DecryptContext implementation:
CastKeySystem GetKeySystem() override;
bool Decrypt(CastDecoderBuffer* buffer,
- std::vector<uint8_t>* output) final;
-
- // TODO(smcgruer): Replace DecryptContext::Decrypt with this one in next
- // public api releasing.
- // Decrypts the given buffer. Returns true/false for success/failure.
- //
- // The decrypted data will be of size |buffer.data_size()| and there must be
- // enough space in |output| to store that data.
- //
- // If non-zero, |data_offset| specifies an offset to be applied to |output|
- // before the decrypted data is written.
- virtual bool Decrypt(CastDecoderBuffer* buffer,
- uint8_t* output,
- size_t data_offset);
+ uint8_t* output,
+ size_t data_offset) override;
// Similar as the above one. Decryption success or not will be returned in
// |decrypt_cb|. |decrypt_cb| will be called on caller's thread.
« 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