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_ADAPTER_CHROMEOS_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void CreateL2capService( | 89 void CreateL2capService( |
90 const device::BluetoothUUID& uuid, | 90 const device::BluetoothUUID& uuid, |
91 const ServiceOptions& options, | 91 const ServiceOptions& options, |
92 const CreateServiceCallback& callback, | 92 const CreateServiceCallback& callback, |
93 const CreateServiceErrorCallback& error_callback) override; | 93 const CreateServiceErrorCallback& error_callback) override; |
94 void RegisterAudioSink( | 94 void RegisterAudioSink( |
95 const device::BluetoothAudioSink::Options& options, | 95 const device::BluetoothAudioSink::Options& options, |
96 const device::BluetoothAdapter::AcquiredCallback& callback, | 96 const device::BluetoothAdapter::AcquiredCallback& callback, |
97 const device::BluetoothAudioSink::ErrorCallback& error_callback) override; | 97 const device::BluetoothAudioSink::ErrorCallback& error_callback) override; |
98 | 98 |
| 99 void RegisterAdvertisement( |
| 100 scoped_ptr<device::BluetoothAdvertisement::Data> advertisement_data, |
| 101 const CreateAdvertisementCallback& callback, |
| 102 const CreateAdvertisementErrorCallback& error_callback) override; |
| 103 |
99 // Locates the device object by object path (the devices map and | 104 // Locates the device object by object path (the devices map and |
100 // BluetoothDevice methods are by address). | 105 // BluetoothDevice methods are by address). |
101 BluetoothDeviceChromeOS* GetDeviceWithPath( | 106 BluetoothDeviceChromeOS* GetDeviceWithPath( |
102 const dbus::ObjectPath& object_path); | 107 const dbus::ObjectPath& object_path); |
103 | 108 |
104 // Announce to observers a change in device state that is not reflected by | 109 // Announce to observers a change in device state that is not reflected by |
105 // its D-Bus properties. | 110 // its D-Bus properties. |
106 void NotifyDeviceChanged(BluetoothDeviceChromeOS* device); | 111 void NotifyDeviceChanged(BluetoothDeviceChromeOS* device); |
107 | 112 |
108 // The following methods are used to send various GATT observer events to | 113 // The following methods are used to send various GATT observer events to |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 // Note: This should remain the last member so it'll be destroyed and | 374 // Note: This should remain the last member so it'll be destroyed and |
370 // invalidate its weak pointers before any other members are destroyed. | 375 // invalidate its weak pointers before any other members are destroyed. |
371 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; | 376 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; |
372 | 377 |
373 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); | 378 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); |
374 }; | 379 }; |
375 | 380 |
376 } // namespace chromeos | 381 } // namespace chromeos |
377 | 382 |
378 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ | 383 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
OLD | NEW |