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

Unified Diff: chrome/common/extensions/api/copresence_private.idl

Issue 637223011: Redesign the copresence audio handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 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
Index: chrome/common/extensions/api/copresence_private.idl
diff --git a/chrome/common/extensions/api/copresence_private.idl b/chrome/common/extensions/api/copresence_private.idl
index 9b0e12df2ab5450c47e83b98ffeab88ba7f48d66..78605a0f55b72ad2690cada6f262a440d60fab00 100644
--- a/chrome/common/extensions/api/copresence_private.idl
+++ b/chrome/common/extensions/api/copresence_private.idl
@@ -5,6 +5,9 @@
// Use the <code>chrome.copresencePrivate</code> API to interface with Chrome
// from the whispernet_proxy extension.
namespace copresencePrivate {
+ // This is the type of decode request. It specifies which decoders to run on
+ // the given samples.
+ enum DecodeRequestType { audible, inaudible, both };
not at google - send to devlin 2014/10/17 20:17:57 This will only ever be audible/inaudible, right? B
rkc 2014/10/17 21:50:22 Done.
dictionary PlayParameters {
double sampleRate;
@@ -47,7 +50,8 @@ namespace copresencePrivate {
// Fired to request encoding of the given token.
static void onEncodeTokenRequest(DOMString base64Token, boolean audible);
// Fired when we have new samples to decode.
- static void onDecodeSamplesRequest(ArrayBuffer audioSamples);
+ static void onDecodeSamplesRequest(DecodeRequestType type,
not at google - send to devlin 2014/10/17 20:17:57 This isn't backwards compatible? Not a problem rig
rkc 2014/10/17 21:50:22 Done.
+ ArrayBuffer audioSamples);
// Fired to request a DetectBroadcast.
static void onDetectBroadcastRequest();
};
« no previous file with comments | « chrome/browser/resources/whispernet_proxy/whispernet_proxy_pnacl.pexe.png ('k') | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698