| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_LOCAL_GATT_SERVICE_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOCAL_GATT_SERVICE_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOCAL_GATT_SERVICE_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOCAL_GATT_SERVICE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // all of its associated attributes available on the local adapters GATT | 143 // all of its associated attributes available on the local adapters GATT |
| 144 // database. Call Unregister to make this service no longer available. | 144 // database. Call Unregister to make this service no longer available. |
| 145 virtual void Register(const base::Closure& callback, | 145 virtual void Register(const base::Closure& callback, |
| 146 const ErrorCallback& error_callback) = 0; | 146 const ErrorCallback& error_callback) = 0; |
| 147 | 147 |
| 148 // Unregisters this GATT service. This will remove the service from the list | 148 // Unregisters this GATT service. This will remove the service from the list |
| 149 // of services exposed by the adapter this service was registered on. | 149 // of services exposed by the adapter this service was registered on. |
| 150 virtual void Unregister(const base::Closure& callback, | 150 virtual void Unregister(const base::Closure& callback, |
| 151 const ErrorCallback& error_callback) = 0; | 151 const ErrorCallback& error_callback) = 0; |
| 152 | 152 |
| 153 virtual BluetoothLocalGattCharacteristic* GetCharacteristic( |
| 154 const std::string& identifier) = 0; |
| 155 |
| 153 protected: | 156 protected: |
| 154 BluetoothLocalGattService(); | 157 BluetoothLocalGattService(); |
| 155 ~BluetoothLocalGattService() override; | 158 ~BluetoothLocalGattService() override; |
| 156 | 159 |
| 157 private: | 160 private: |
| 158 DISALLOW_COPY_AND_ASSIGN(BluetoothLocalGattService); | 161 DISALLOW_COPY_AND_ASSIGN(BluetoothLocalGattService); |
| 159 }; | 162 }; |
| 160 | 163 |
| 161 } // namespace device | 164 } // namespace device |
| 162 | 165 |
| 163 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOCAL_GATT_SERVICE_H_ | 166 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOCAL_GATT_SERVICE_H_ |
| OLD | NEW |