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

Side by Side Diff: chrome/common/extensions/api/bluetooth_socket.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 // Use the <code>chrome.bluetoothSocket</code> API to send and receive data 5 // Use the <code>chrome.bluetoothSocket</code> API to send and receive data
6 // to Bluetooth devices using RFCOMM and L2CAP connections. 6 // to Bluetooth devices using RFCOMM and L2CAP connections.
7 namespace bluetoothSocket { 7 namespace bluetoothSocket {
8 // The socket properties specified in the $ref:create or $ref:update 8 // The socket properties specified in the $ref:create or $ref:update
9 // function. Each property is optional. If a property value is not specified, 9 // function. Each property is optional. If a property value is not specified,
10 // a default value is used when calling $ref:create, or the existing value is 10 // a default value is used when calling $ref:create, or the existing value is
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // |options| : Optional additional options for the service. 236 // |options| : Optional additional options for the service.
237 // |callback| : Called when listen operation completes. 237 // |callback| : Called when listen operation completes.
238 static void listenUsingL2cap(long socketId, 238 static void listenUsingL2cap(long socketId,
239 DOMString uuid, 239 DOMString uuid,
240 optional ListenOptions options, 240 optional ListenOptions options,
241 ListenCallback callback); 241 ListenCallback callback);
242 242
243 // Connects the socket to a remote Bluetooth device. When the 243 // Connects the socket to a remote Bluetooth device. When the
244 // <code>connect</code> operation completes successfully, 244 // <code>connect</code> operation completes successfully,
245 // <code>onReceive</code> events are raised when data is received from the 245 // <code>onReceive</code> events are raised when data is received from the
246 // peer. If a network error occur while the runtime is receiving packets, 246 // peer. If a network error occurs while the runtime is receiving packets,
247 // a <code>onReceiveError</code> event is raised, at which point no more 247 // a <code>onReceiveError</code> event is raised, at which point no more
248 // <code>onReceive</code> event will be raised for this socket until the 248 // <code>onReceive</code> event will be raised for this socket until the
249 // <code>setPaused(false)</code> method is called. 249 // <code>setPaused(false)</code> method is called.
250 // |socketId| : The socket identifier. 250 // |socketId| : The socket identifier.
251 // |address| : The address of the Bluetooth device. 251 // |address| : The address of the Bluetooth device.
252 // |uuid| : The UUID of the service to connect to. 252 // |uuid| : The UUID of the service to connect to.
253 // |callback| : Called when the connect attempt is complete. 253 // |callback| : Called when the connect attempt is complete.
254 static void connect(long socketId, 254 static void connect(long socketId,
255 DOMString address, 255 DOMString address,
256 DOMString uuid, 256 DOMString uuid,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 static void onReceive(ReceiveInfo info); 307 static void onReceive(ReceiveInfo info);
308 308
309 // Event raised when a network error occured while the runtime was waiting 309 // Event raised when a network error occured while the runtime was waiting
310 // for data on the socket. Once this event is raised, the socket is set to 310 // for data on the socket. Once this event is raised, the socket is set to
311 // <code>paused</code> and no more <code>onReceive</code> events are raised 311 // <code>paused</code> and no more <code>onReceive</code> events are raised
312 // for this socket. 312 // for this socket.
313 // |info| : The event data. 313 // |info| : The event data.
314 static void onReceiveError(ReceiveErrorInfo info); 314 static void onReceiveError(ReceiveErrorInfo info);
315 }; 315 };
316 }; 316 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698