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

Side by Side Diff: chrome/common/extensions/api/easy_unlock_private.idl

Issue 491753002: [EasyUnlock] Add a private API for establishing an insecure Bluetooth connection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile and update histograms Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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. Other than the
Tim Song 2014/08/21 00:36:27 also mention "no MITM protection" as it's possible
Ilya Sherman 2014/08/21 00:53:24 Done.
219 // reduced security setting, behaves identically to the
220 // chrome.bluetoothSocket.connect() function.
221 // |socketId| : The socket identifier, as issued by the
222 // chrome.bluetoothSocket API.
223 // |address| : The address of the Bluetooth device.
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698