| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Use the <code>chrome.copresencePrivate</code> API to interface with Chrome | 5 // Use the <code>chrome.copresencePrivate</code> API to interface with Chrome |
| 6 // from the whispernet_proxy extension. | 6 // from the whispernet_proxy extension. |
| 7 [use_movable_types=true]namespace copresencePrivate { | 7 namespace copresencePrivate { |
| 8 dictionary Token { | 8 dictionary Token { |
| 9 DOMString token; | 9 DOMString token; |
| 10 boolean audible; | 10 boolean audible; |
| 11 }; | 11 }; |
| 12 | 12 |
| 13 dictionary TokenParameters { | 13 dictionary TokenParameters { |
| 14 long length; | 14 long length; |
| 15 boolean crc; | 15 boolean crc; |
| 16 boolean parity; | 16 boolean parity; |
| 17 }; | 17 }; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 // Fired to request encoding of the given token. | 59 // Fired to request encoding of the given token. |
| 60 static void onEncodeTokenRequest(DOMString clientId, | 60 static void onEncodeTokenRequest(DOMString clientId, |
| 61 EncodeTokenParameters encodeParams); | 61 EncodeTokenParameters encodeParams); |
| 62 | 62 |
| 63 // Fired when we have new samples to decode. | 63 // Fired when we have new samples to decode. |
| 64 static void onDecodeSamplesRequest(DOMString clientId, | 64 static void onDecodeSamplesRequest(DOMString clientId, |
| 65 DecodeSamplesParameters decodeParams); | 65 DecodeSamplesParameters decodeParams); |
| 66 }; | 66 }; |
| 67 }; | 67 }; |
| OLD | NEW |