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

Side by Side 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: II Created 5 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Possible errors passed back to an error callback function in case of a 89 // Possible errors passed back to an error callback function in case of a
90 // failed call to Connect(). 90 // failed call to Connect().
91 enum ConnectErrorCode { 91 enum ConnectErrorCode {
92 ERROR_UNKNOWN, 92 ERROR_UNKNOWN,
93 ERROR_INPROGRESS, 93 ERROR_INPROGRESS,
94 ERROR_FAILED, 94 ERROR_FAILED,
95 ERROR_AUTH_FAILED, 95 ERROR_AUTH_FAILED,
96 ERROR_AUTH_CANCELED, 96 ERROR_AUTH_CANCELED,
97 ERROR_AUTH_REJECTED, 97 ERROR_AUTH_REJECTED,
98 ERROR_AUTH_TIMEOUT, 98 ERROR_AUTH_TIMEOUT,
99 ERROR_UNSUPPORTED_DEVICE 99 ERROR_UNSUPPORTED_DEVICE,
100 ERROR_ATTRIBUTE_LENGTH_INVALID,
101 ERROR_CONNECTION_CONGESTED,
102 ERROR_INSUFFICIENT_ENCRYPTION,
103 ERROR_OFFSET_INVALID,
104 ERROR_READ_FAILED,
105 ERROR_REQUEST_NOT_SUPPORTED,
106 ERROR_WRITE_FAILED
Kai Jiang 2015/11/25 14:17:13 done with sorting alphabetically according to prev
100 }; 107 };
101 108
102 typedef std::vector<BluetoothUUID> UUIDList; 109 typedef std::vector<BluetoothUUID> UUIDList;
103 110
104 // Interface for negotiating pairing of bluetooth devices. 111 // Interface for negotiating pairing of bluetooth devices.
105 class PairingDelegate { 112 class PairingDelegate {
106 public: 113 public:
107 virtual ~PairingDelegate() {} 114 virtual ~PairingDelegate() {}
108 115
109 // This method will be called when the Bluetooth daemon requires a 116 // This method will be called when the Bluetooth daemon requires a
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 526
520 private: 527 private:
521 // Returns a localized string containing the device's bluetooth address and 528 // Returns a localized string containing the device's bluetooth address and
522 // a device type for display when |name_| is empty. 529 // a device type for display when |name_| is empty.
523 base::string16 GetAddressWithLocalizedDeviceTypeName() const; 530 base::string16 GetAddressWithLocalizedDeviceTypeName() const;
524 }; 531 };
525 532
526 } // namespace device 533 } // namespace device
527 534
528 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ 535 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698