OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MAC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ |
7 | 7 |
8 #import <IOBluetooth/IOBluetooth.h> | 8 #import <IOBluetooth/IOBluetooth.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual void RejectPairing() OVERRIDE; | 55 virtual void RejectPairing() OVERRIDE; |
56 virtual void CancelPairing() OVERRIDE; | 56 virtual void CancelPairing() OVERRIDE; |
57 virtual void Disconnect( | 57 virtual void Disconnect( |
58 const base::Closure& callback, | 58 const base::Closure& callback, |
59 const ErrorCallback& error_callback) OVERRIDE; | 59 const ErrorCallback& error_callback) OVERRIDE; |
60 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; | 60 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; |
61 virtual void ConnectToService( | 61 virtual void ConnectToService( |
62 const BluetoothUUID& uuid, | 62 const BluetoothUUID& uuid, |
63 const ConnectToServiceCallback& callback, | 63 const ConnectToServiceCallback& callback, |
64 const ConnectToServiceErrorCallback& error_callback) OVERRIDE; | 64 const ConnectToServiceErrorCallback& error_callback) OVERRIDE; |
| 65 virtual void CreateGattConnection( |
| 66 const GattConnectionCallback& callback, |
| 67 const ConnectErrorCallback& error_callback) OVERRIDE; |
65 virtual void StartConnectionMonitor( | 68 virtual void StartConnectionMonitor( |
66 const base::Closure& callback, | 69 const base::Closure& callback, |
67 const ErrorCallback& error_callback) OVERRIDE; | 70 const ErrorCallback& error_callback) OVERRIDE; |
68 | 71 |
69 // Returns the Bluetooth address for the |device|. The returned address has a | 72 // Returns the Bluetooth address for the |device|. The returned address has a |
70 // normalized format (see below). | 73 // normalized format (see below). |
71 static std::string GetDeviceAddress(IOBluetoothDevice* device); | 74 static std::string GetDeviceAddress(IOBluetoothDevice* device); |
72 | 75 |
73 protected: | 76 protected: |
74 // BluetoothDevice override | 77 // BluetoothDevice override |
(...skipping 11 matching lines...) Expand all Loading... |
86 ObserverList<Observer> observers_; | 89 ObserverList<Observer> observers_; |
87 | 90 |
88 base::scoped_nsobject<IOBluetoothDevice> device_; | 91 base::scoped_nsobject<IOBluetoothDevice> device_; |
89 | 92 |
90 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); | 93 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); |
91 }; | 94 }; |
92 | 95 |
93 } // namespace device | 96 } // namespace device |
94 | 97 |
95 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ | 98 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ |
OLD | NEW |