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

Side by Side Diff: device/bluetooth/bluetooth_local_gatt_service.h

Issue 1920353002: Implement create attribute API functions for BTLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@api_changes
Patch Set: owners Created 4 years, 7 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_win.cc ('k') | device/bluetooth/bluez/bluetooth_adapter_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698