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_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 16 matching lines...) Expand all Loading... |
27 #include "device/bluetooth/bluez/bluetooth_service_record_bluez.h" | 27 #include "device/bluetooth/bluez/bluetooth_service_record_bluez.h" |
28 #include "device/bluetooth/dbus/bluetooth_adapter_client.h" | 28 #include "device/bluetooth/dbus/bluetooth_adapter_client.h" |
29 #include "device/bluetooth/dbus/bluetooth_agent_service_provider.h" | 29 #include "device/bluetooth/dbus/bluetooth_agent_service_provider.h" |
30 #include "device/bluetooth/dbus/bluetooth_device_client.h" | 30 #include "device/bluetooth/dbus/bluetooth_device_client.h" |
31 #include "device/bluetooth/dbus/bluetooth_input_client.h" | 31 #include "device/bluetooth/dbus/bluetooth_input_client.h" |
32 #include "device/bluetooth/dbus/bluetooth_profile_manager_client.h" | 32 #include "device/bluetooth/dbus/bluetooth_profile_manager_client.h" |
33 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" | 33 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" |
34 | 34 |
35 namespace base { | 35 namespace base { |
36 class SequencedTaskRunner; | 36 class SequencedTaskRunner; |
| 37 class TimeDelta; |
37 } // namespace base | 38 } // namespace base |
38 | 39 |
39 namespace device { | 40 namespace device { |
40 class BluetoothSocketThread; | 41 class BluetoothSocketThread; |
41 class BluetoothTestBlueZ; | 42 class BluetoothTestBlueZ; |
42 } // namespace device | 43 } // namespace device |
43 | 44 |
44 namespace bluez { | 45 namespace bluez { |
45 | 46 |
46 class BluetoothBlueZTest; | 47 class BluetoothBlueZTest; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 const CreateServiceCallback& callback, | 117 const CreateServiceCallback& callback, |
117 const CreateServiceErrorCallback& error_callback) override; | 118 const CreateServiceErrorCallback& error_callback) override; |
118 void RegisterAudioSink( | 119 void RegisterAudioSink( |
119 const device::BluetoothAudioSink::Options& options, | 120 const device::BluetoothAudioSink::Options& options, |
120 const device::BluetoothAdapter::AcquiredCallback& callback, | 121 const device::BluetoothAdapter::AcquiredCallback& callback, |
121 const device::BluetoothAudioSink::ErrorCallback& error_callback) override; | 122 const device::BluetoothAudioSink::ErrorCallback& error_callback) override; |
122 | 123 |
123 void RegisterAdvertisement( | 124 void RegisterAdvertisement( |
124 std::unique_ptr<device::BluetoothAdvertisement::Data> advertisement_data, | 125 std::unique_ptr<device::BluetoothAdvertisement::Data> advertisement_data, |
125 const CreateAdvertisementCallback& callback, | 126 const CreateAdvertisementCallback& callback, |
126 const CreateAdvertisementErrorCallback& error_callback) override; | 127 const AdvertisementErrorCallback& error_callback) override; |
| 128 |
| 129 void SetAdvertisingInterval( |
| 130 const base::TimeDelta& min, |
| 131 const base::TimeDelta& max, |
| 132 const base::Closure& callback, |
| 133 const AdvertisementErrorCallback& error_callback) override; |
127 | 134 |
128 device::BluetoothLocalGattService* GetGattService( | 135 device::BluetoothLocalGattService* GetGattService( |
129 const std::string& identifier) const override; | 136 const std::string& identifier) const override; |
130 | 137 |
131 // These functions are specifically for use with ARC++. They have no need to | 138 // These functions are specifically for use with ARC++. They have no need to |
132 // exist for other platforms, hence we're putting them directly in the BlueZ | 139 // exist for other platforms, hence we're putting them directly in the BlueZ |
133 // specific code. | 140 // specific code. |
134 | 141 |
135 // Creates a service record with the SDP server running on this adapter. This | 142 // Creates a service record with the SDP server running on this adapter. This |
136 // only creates the record, it does not create a listening socket for the | 143 // only creates the record, it does not create a listening socket for the |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 // Note: This should remain the last member so it'll be destroyed and | 502 // Note: This should remain the last member so it'll be destroyed and |
496 // invalidate its weak pointers before any other members are destroyed. | 503 // invalidate its weak pointers before any other members are destroyed. |
497 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; | 504 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; |
498 | 505 |
499 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); | 506 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); |
500 }; | 507 }; |
501 | 508 |
502 } // namespace bluez | 509 } // namespace bluez |
503 | 510 |
504 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ | 511 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ |
OLD | NEW |