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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 bool IsInitialized() const override; | 96 bool IsInitialized() const override; |
97 bool IsPresent() const override; | 97 bool IsPresent() const override; |
98 bool IsPowered() const override; | 98 bool IsPowered() const override; |
99 void SetPowered(bool powered, | 99 void SetPowered(bool powered, |
100 const base::Closure& callback, | 100 const base::Closure& callback, |
101 const ErrorCallback& error_callback) override; | 101 const ErrorCallback& error_callback) override; |
102 bool IsDiscoverable() const override; | 102 bool IsDiscoverable() const override; |
103 void SetDiscoverable(bool discoverable, | 103 void SetDiscoverable(bool discoverable, |
104 const base::Closure& callback, | 104 const base::Closure& callback, |
105 const ErrorCallback& error_callback) override; | 105 const ErrorCallback& error_callback) override; |
| 106 uint32_t GetDiscoverableTimeout() const; |
106 bool IsDiscovering() const override; | 107 bool IsDiscovering() const override; |
107 void CreateRfcommService( | 108 void CreateRfcommService( |
108 const device::BluetoothUUID& uuid, | 109 const device::BluetoothUUID& uuid, |
109 const ServiceOptions& options, | 110 const ServiceOptions& options, |
110 const CreateServiceCallback& callback, | 111 const CreateServiceCallback& callback, |
111 const CreateServiceErrorCallback& error_callback) override; | 112 const CreateServiceErrorCallback& error_callback) override; |
112 void CreateL2capService( | 113 void CreateL2capService( |
113 const device::BluetoothUUID& uuid, | 114 const device::BluetoothUUID& uuid, |
114 const ServiceOptions& options, | 115 const ServiceOptions& options, |
115 const CreateServiceCallback& callback, | 116 const CreateServiceCallback& callback, |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 // Note: This should remain the last member so it'll be destroyed and | 495 // Note: This should remain the last member so it'll be destroyed and |
495 // invalidate its weak pointers before any other members are destroyed. | 496 // invalidate its weak pointers before any other members are destroyed. |
496 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; | 497 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; |
497 | 498 |
498 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); | 499 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); |
499 }; | 500 }; |
500 | 501 |
501 } // namespace bluez | 502 } // namespace bluez |
502 | 503 |
503 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ | 504 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ |
OLD | NEW |