Chromium Code Reviews| 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(); |
| }; |