| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 void SetAdvertisingInterval( | 129 void SetAdvertisingInterval( |
| 130 const base::TimeDelta& min, | 130 const base::TimeDelta& min, |
| 131 const base::TimeDelta& max, | 131 const base::TimeDelta& max, |
| 132 const base::Closure& callback, | 132 const base::Closure& callback, |
| 133 const AdvertisementErrorCallback& error_callback) override; | 133 const AdvertisementErrorCallback& error_callback) override; |
| 134 | 134 |
| 135 device::BluetoothLocalGattService* GetGattService( | 135 device::BluetoothLocalGattService* GetGattService( |
| 136 const std::string& identifier) const override; | 136 const std::string& identifier) const override; |
| 137 | 137 |
| 138 // 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 |
| 139 // 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 |
| 140 // specific code. | 140 // specific code. |
| 141 | 141 |
| 142 // 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 |
| 143 // 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 |
| 144 // service. | 144 // service. |
| 145 void CreateServiceRecord(const BluetoothServiceRecordBlueZ& record, | 145 void CreateServiceRecord(const BluetoothServiceRecordBlueZ& record, |
| 146 const ServiceRecordCallback& callback, | 146 const ServiceRecordCallback& callback, |
| 147 const ServiceRecordErrorCallback& error_callback); | 147 const ServiceRecordErrorCallback& error_callback); |
| 148 | 148 |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 // Note: This should remain the last member so it'll be destroyed and | 503 // Note: This should remain the last member so it'll be destroyed and |
| 504 // invalidate its weak pointers before any other members are destroyed. | 504 // invalidate its weak pointers before any other members are destroyed. |
| 505 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; | 505 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; |
| 506 | 506 |
| 507 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); | 507 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); |
| 508 }; | 508 }; |
| 509 | 509 |
| 510 } // namespace bluez | 510 } // namespace bluez |
| 511 | 511 |
| 512 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ | 512 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ |
| OLD | NEW |