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

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

Issue 2037173003: Notify the BluetoothAdapter::Observer when a bluetooth peripheral disconnects on Android and Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: 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 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_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 const CreateAdvertisementCallback& callback, 120 const CreateAdvertisementCallback& callback,
121 const CreateAdvertisementErrorCallback& error_callback) override; 121 const CreateAdvertisementErrorCallback& error_callback) override;
122 122
123 device::BluetoothLocalGattService* GetGattService( 123 device::BluetoothLocalGattService* GetGattService(
124 const std::string& identifier) const override; 124 const std::string& identifier) const override;
125 125
126 // Locates the device object by object path (the devices map and 126 // Locates the device object by object path (the devices map and
127 // BluetoothDevice methods are by address). 127 // BluetoothDevice methods are by address).
128 BluetoothDeviceBlueZ* GetDeviceWithPath(const dbus::ObjectPath& object_path); 128 BluetoothDeviceBlueZ* GetDeviceWithPath(const dbus::ObjectPath& object_path);
129 129
130 // Announces to observers a change in device state that is not reflected by
131 // its D-Bus properties. |device| is owned by the caller and cannot be NULL.
132 void NotifyDeviceChanged(BluetoothDeviceBlueZ* device);
133
134 // Announce to observers a device address change. 130 // Announce to observers a device address change.
135 void NotifyDeviceAddressChanged(BluetoothDeviceBlueZ* device, 131 void NotifyDeviceAddressChanged(BluetoothDeviceBlueZ* device,
136 const std::string& old_address); 132 const std::string& old_address);
137 133
138 // Returns the object path of the adapter. 134 // Returns the object path of the adapter.
139 const dbus::ObjectPath& object_path() const { return object_path_; } 135 const dbus::ObjectPath& object_path() const { return object_path_; }
140 136
141 // Request a profile on the adapter for a custom service with a 137 // Request a profile on the adapter for a custom service with a
142 // specific UUID for the device at |device_path| to be sent to |delegate|. 138 // specific UUID for the device at |device_path| to be sent to |delegate|.
143 // If |device_path| is the empty string, incoming connections will be 139 // If |device_path| is the empty string, incoming connections will be
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 // Note: This should remain the last member so it'll be destroyed and 465 // Note: This should remain the last member so it'll be destroyed and
470 // invalidate its weak pointers before any other members are destroyed. 466 // invalidate its weak pointers before any other members are destroyed.
471 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; 467 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_;
472 468
473 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); 469 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ);
474 }; 470 };
475 471
476 } // namespace bluez 472 } // namespace bluez
477 473
478 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ 474 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_unittest.cc ('k') | device/bluetooth/bluez/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698