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

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..91d777b8b851a918d54866bffb8791ce3b64e7d0 100644
--- a/chrome/common/extensions/api/copresence_private.idl
+++ b/chrome/common/extensions/api/copresence_private.idl
@@ -5,6 +5,10 @@
// Use the <code>chrome.copresencePrivate</code> API to interface with Chrome
// from the whispernet_proxy extension.
namespace copresencePrivate {
+ dictionary DecodeSamplesParameters {
+ boolean decodeAudible;
+ boolean decodeInaudible;
+ };
dictionary PlayParameters {
double sampleRate;
@@ -47,7 +51,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(ArrayBuffer samples,
+ DecodeSamplesParameters request);
// 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