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 // <code>chrome.easyUnlockPrivate</code> API that provides hooks to Chrome to | 5 // <code>chrome.easyUnlockPrivate</code> API that provides hooks to Chrome to |
6 // be used by Easy Unlock component app. | 6 // be used by Easy Unlock component app. |
7 [nodoc] namespace easyUnlockPrivate { | 7 [nodoc] namespace easyUnlockPrivate { |
8 // Signature algorithms supported by the crypto library methods used by | 8 // Signature algorithms supported by the crypto library methods used by |
9 // Easy Unlock. | 9 // Easy Unlock. |
10 enum SignatureType { | 10 enum SignatureType { |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
207 // Bluetooth address. This function is useful as a faster alternative to | 207 // Bluetooth address. This function is useful as a faster alternative to |
208 // Bluetooth discovery, when you already know the remote device's Bluetooth | 208 // Bluetooth discovery, when you already know the remote device's Bluetooth |
209 // address. A successful call to this function has the side-effect of | 209 // address. A successful call to this function has the side-effect of |
210 // registering the device with the Bluetooth daemon, making it available for | 210 // registering the device with the Bluetooth daemon, making it available for |
211 // future outgoing connections. | 211 // future outgoing connections. |
212 // |deviceAddress|: The Bluetooth address of the device to connect to. | 212 // |deviceAddress|: The Bluetooth address of the device to connect to. |
213 // |callback|: Called to indicate success or failure. | 213 // |callback|: Called to indicate success or failure. |
214 static void seekBluetoothDeviceByAddress(DOMString deviceAddress, | 214 static void seekBluetoothDeviceByAddress(DOMString deviceAddress, |
215 optional EmptyCallback callback); | 215 optional EmptyCallback callback); |
216 | 216 |
217 // Connects the socket to a remote Bluetooth device over an insecure | |
218 // connection, i.e. a connection that requests no bonding and no | |
219 // man-in-the-middle protection. Other than the reduced security setting, | |
220 // behaves identically to the chrome.bluetoothSocket.connect() function. | |
221 // |socketId| : The socket identifier, as issued by the | |
Yoyo Zhou
2014/08/21 22:42:53
nit: no space between | and :
Ilya Sherman
2014/08/21 23:11:29
Done.
| |
222 // chrome.bluetoothSocket API. | |
223 // |address| : The address of the Bluetooth device. | |
Yoyo Zhou
2014/08/21 22:42:52
Should this be called deviceAddress for consistenc
Ilya Sherman
2014/08/21 23:11:29
Done.
| |
224 // |uuid| : The UUID of the service to connect to. | |
225 // |callback| : Called when the connect attempt is complete. | |
226 static void connectToBluetoothServiceInsecurely(long socketId, | |
227 DOMString address, | |
228 DOMString uuid, | |
229 EmptyCallback callback); | |
230 | |
217 // Updates the screenlock state to reflect the Easy Unlock app state. | 231 // Updates the screenlock state to reflect the Easy Unlock app state. |
218 static void updateScreenlockState(State state, | 232 static void updateScreenlockState(State state, |
219 optional EmptyCallback callback); | 233 optional EmptyCallback callback); |
220 | 234 |
221 // Saves the permit record for the local device. | 235 // Saves the permit record for the local device. |
222 // |permitAccess|: The permit record to be saved. | 236 // |permitAccess|: The permit record to be saved. |
223 // |callback|: Called to indicate success or failure. | 237 // |callback|: Called to indicate success or failure. |
224 static void setPermitAccess(PermitRecord permitAccess, | 238 static void setPermitAccess(PermitRecord permitAccess, |
225 optional EmptyCallback callback); | 239 optional EmptyCallback callback); |
226 | 240 |
227 // Gets the permit record for the local device. | 241 // Gets the permit record for the local device. |
228 static void getPermitAccess(GetPermitAccessCallback callback); | 242 static void getPermitAccess(GetPermitAccessCallback callback); |
229 | 243 |
230 // Clears the permit record for the local device. | 244 // Clears the permit record for the local device. |
231 static void clearPermitAccess(optional EmptyCallback callback); | 245 static void clearPermitAccess(optional EmptyCallback callback); |
232 | 246 |
233 // Saves the remote device list. | 247 // Saves the remote device list. |
234 // |devices|: The list of remote devices to be saved. | 248 // |devices|: The list of remote devices to be saved. |
235 // |callback|: Called to indicate success or failure. | 249 // |callback|: Called to indicate success or failure. |
236 static void setRemoteDevices(Device[] devices, | 250 static void setRemoteDevices(Device[] devices, |
237 optional EmptyCallback callback); | 251 optional EmptyCallback callback); |
238 | 252 |
239 // Gets the remote device list. | 253 // Gets the remote device list. |
240 static void getRemoteDevices(GetRemoteDevicesCallback callback); | 254 static void getRemoteDevices(GetRemoteDevicesCallback callback); |
241 }; | 255 }; |
242 }; | 256 }; |
OLD | NEW |