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

Unified Diff: device/bluetooth/bluetooth_device_mac.h

Issue 2052513002: Read characteristic implementation on macOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@characteristicscan_servicescan_cleanup
Patch Set: Addressing msarda's comment Created 4 years, 6 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
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_device_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device_mac.h
diff --git a/device/bluetooth/bluetooth_device_mac.h b/device/bluetooth/bluetooth_device_mac.h
index 0124eac3d7f793e9981a8bb7000afc0fe46a0989..3ebcec8a691de0db069c9bd1f344b61a4be37c69 100644
--- a/device/bluetooth/bluetooth_device_mac.h
+++ b/device/bluetooth/bluetooth_device_mac.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "device/bluetooth/bluetooth_device.h"
+#include "device/bluetooth/bluetooth_gatt_service.h"
@class NSDate;
@@ -27,6 +28,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceMac : public BluetoothDevice {
BluetoothDevice::ConnectErrorCode error_code);
static BluetoothDevice::ConnectErrorCode GetConnectErrorCodeFromNSError(
NSError* error);
+ static NSError* GetNSErrorFromGattErrorCode(
+ BluetoothGattService::GattErrorCode error_code);
+ static BluetoothGattService::GattErrorCode GetGattErrorCodeFromNSError(
+ NSError* error);
protected:
BluetoothDeviceMac(BluetoothAdapterMac* adapter);
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698