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

Unified Diff: device/bluetooth/bluetooth_device.h

Issue 1464443002: bluetooth: android: Add BluetoothDevice::ConnectErrorCode enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: VI Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_device.h
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index a28bc9e244b9a2d54a308fceca4135147b1d251c..845c89a15febd1ca4f6d6cdc3d44172b58af8fed 100644
--- a/device/bluetooth/bluetooth_device.h
+++ b/device/bluetooth/bluetooth_device.h
@@ -92,14 +92,22 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice {
// Possible errors passed back to an error callback function in case of a
// failed call to Connect().
enum ConnectErrorCode {
- ERROR_UNKNOWN,
- ERROR_INPROGRESS,
- ERROR_FAILED,
- ERROR_AUTH_FAILED,
+ ERROR_ATTRIBUTE_LENGTH_INVALID,
ERROR_AUTH_CANCELED,
+ ERROR_AUTH_FAILED,
ERROR_AUTH_REJECTED,
ERROR_AUTH_TIMEOUT,
- ERROR_UNSUPPORTED_DEVICE
+ ERROR_CONNECTION_CONGESTED,
+ ERROR_FAILED,
+ ERROR_INPROGRESS,
+ ERROR_INSUFFICIENT_ENCRYPTION,
+ ERROR_OFFSET_INVALID,
+ ERROR_READ_NOT_PERMITTED,
+ ERROR_REQUEST_NOT_SUPPORTED,
+ ERROR_UNKNOWN,
+ ERROR_UNSUPPORTED_DEVICE,
+ ERROR_WRITE_NOT_PERMITTED,
+ NUM_CONNECT_ERROR_CODES // Keep as last enum.
};
typedef std::vector<BluetoothUUID> UUIDList;

Powered by Google App Engine
This is Rietveld 408576698