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

Unified Diff: media/mojo/interfaces/decryptor.mojom

Issue 1538063003: Use data pipe to pass DecoderBuffer contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes (+rebase) Created 5 years 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 | media/mojo/services/mojo_decryptor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/interfaces/decryptor.mojom
diff --git a/media/mojo/interfaces/decryptor.mojom b/media/mojo/interfaces/decryptor.mojom
index dad3d6838f80f85960ea56bc65ab3ce3436fe001..64e1b63168674b5e27c3587f69c1966ba43c29f7 100644
--- a/media/mojo/interfaces/decryptor.mojom
+++ b/media/mojo/interfaces/decryptor.mojom
@@ -19,6 +19,15 @@ interface Decryptor {
ERROR // Key is available but an error occurred during decryption.
};
+ // Pass the two data pipes used to transfer DecoderBuffer contents to and
+ // from the Decryptor. |receive_pipe| will be used to receive DecoderBuffer
+ // data on Decrypt(), DecryptAndDecodeAudio(), and DecryptAndDecodeVideo()
+ // calls. |transmit_pipe| will be used to pass the DecoderBuffer data
+ // back with OnDecryptDone() calls. This method must be called before any
+ // methods listed are called.
+ Initialize(handle<data_pipe_consumer> receive_pipe,
+ handle<data_pipe_producer> transmit_pipe);
+
// Decrypts the |encrypted| buffer and returns the decrypt |status| and
// decrypted |buffer|.
// At most one decrypt call is allowed at any time for a |stream_type|.
« no previous file with comments | « no previous file | media/mojo/services/mojo_decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698