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

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

Issue 1681853003: Add BluetoothRemoteGattServiceWin to BluetoothDeviceWin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add PlatformSupportsLowEnergy check in the unittests Created 4 years, 10 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 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_ADAPTER_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 BluetoothDeviceBlueZ* GetDeviceWithPath(const dbus::ObjectPath& object_path); 118 BluetoothDeviceBlueZ* GetDeviceWithPath(const dbus::ObjectPath& object_path);
119 119
120 // Announces to observers a change in device state that is not reflected by 120 // Announces to observers a change in device state that is not reflected by
121 // its D-Bus properties. |device| is owned by the caller and cannot be NULL. 121 // its D-Bus properties. |device| is owned by the caller and cannot be NULL.
122 void NotifyDeviceChanged(BluetoothDeviceBlueZ* device); 122 void NotifyDeviceChanged(BluetoothDeviceBlueZ* device);
123 123
124 // Announce to observers a device address change. 124 // Announce to observers a device address change.
125 void NotifyDeviceAddressChanged(BluetoothDeviceBlueZ* device, 125 void NotifyDeviceAddressChanged(BluetoothDeviceBlueZ* device,
126 const std::string& old_address); 126 const std::string& old_address);
127 127
128 // The following methods are used to send various GATT observer events to
129 // observers.
130 void NotifyGattServiceAdded(BluetoothRemoteGattServiceBlueZ* service);
131 void NotifyGattServiceRemoved(BluetoothRemoteGattServiceBlueZ* service);
132 void NotifyGattServiceChanged(BluetoothRemoteGattServiceBlueZ* service);
133 void NotifyGattServicesDiscovered(BluetoothDeviceBlueZ* device);
134 void NotifyGattDiscoveryComplete(BluetoothRemoteGattServiceBlueZ* service);
135 void NotifyGattCharacteristicAdded(
136 BluetoothRemoteGattCharacteristicBlueZ* characteristic);
137 void NotifyGattCharacteristicRemoved(
138 BluetoothRemoteGattCharacteristicBlueZ* characteristic);
139 void NotifyGattDescriptorAdded(
140 BluetoothRemoteGattDescriptorBlueZ* descriptor);
141 void NotifyGattDescriptorRemoved(
142 BluetoothRemoteGattDescriptorBlueZ* descriptor);
143 void NotifyGattCharacteristicValueChanged(
144 BluetoothRemoteGattCharacteristicBlueZ* characteristic,
145 const std::vector<uint8_t>& value);
146 void NotifyGattDescriptorValueChanged(
147 BluetoothRemoteGattDescriptorBlueZ* descriptor,
148 const std::vector<uint8_t>& value);
149
150 // Returns the object path of the adapter. 128 // Returns the object path of the adapter.
151 const dbus::ObjectPath& object_path() const { return object_path_; } 129 const dbus::ObjectPath& object_path() const { return object_path_; }
152 130
153 // Request a profile on the adapter for a custom service with a 131 // Request a profile on the adapter for a custom service with a
154 // specific UUID for the device at |device_path| to be sent to |delegate|. 132 // specific UUID for the device at |device_path| to be sent to |delegate|.
155 // If |device_path| is the empty string, incoming connections will be 133 // If |device_path| is the empty string, incoming connections will be
156 // assigned to |delegate|. When the profile is 134 // assigned to |delegate|. When the profile is
157 // successfully registered, |success_callback| will be called with a pointer 135 // successfully registered, |success_callback| will be called with a pointer
158 // to the profile which is managed by BluetoothAdapterBlueZ. On failure, 136 // to the profile which is managed by BluetoothAdapterBlueZ. On failure,
159 // |error_callback| will be called. 137 // |error_callback| will be called.
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 // Note: This should remain the last member so it'll be destroyed and 376 // Note: This should remain the last member so it'll be destroyed and
399 // invalidate its weak pointers before any other members are destroyed. 377 // invalidate its weak pointers before any other members are destroyed.
400 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; 378 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_;
401 379
402 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); 380 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ);
403 }; 381 };
404 382
405 } // namespace bluez 383 } // namespace bluez
406 384
407 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 385 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_android.h ('k') | device/bluetooth/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698