| 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 };
|
|
|
| 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,
|
| + ArrayBuffer audioSamples);
|
| // Fired to request a DetectBroadcast.
|
| static void onDetectBroadcastRequest();
|
| };
|
|
|