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

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

Issue 2098653002: device/bluetooth/bluez: add discoverable timeout adapter property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 bool IsInitialized() const override; 95 bool IsInitialized() const override;
96 bool IsPresent() const override; 96 bool IsPresent() const override;
97 bool IsPowered() const override; 97 bool IsPowered() const override;
98 void SetPowered(bool powered, 98 void SetPowered(bool powered,
99 const base::Closure& callback, 99 const base::Closure& callback,
100 const ErrorCallback& error_callback) override; 100 const ErrorCallback& error_callback) override;
101 bool IsDiscoverable() const override; 101 bool IsDiscoverable() const override;
102 void SetDiscoverable(bool discoverable, 102 void SetDiscoverable(bool discoverable,
103 const base::Closure& callback, 103 const base::Closure& callback,
104 const ErrorCallback& error_callback) override; 104 const ErrorCallback& error_callback) override;
105 uint32_t GetDiscoverableTimeout() const override;
105 bool IsDiscovering() const override; 106 bool IsDiscovering() const override;
106 void CreateRfcommService( 107 void CreateRfcommService(
107 const device::BluetoothUUID& uuid, 108 const device::BluetoothUUID& uuid,
108 const ServiceOptions& options, 109 const ServiceOptions& options,
109 const CreateServiceCallback& callback, 110 const CreateServiceCallback& callback,
110 const CreateServiceErrorCallback& error_callback) override; 111 const CreateServiceErrorCallback& error_callback) override;
111 void CreateL2capService( 112 void CreateL2capService(
112 const device::BluetoothUUID& uuid, 113 const device::BluetoothUUID& uuid,
113 const ServiceOptions& options, 114 const ServiceOptions& options,
114 const CreateServiceCallback& callback, 115 const CreateServiceCallback& callback,
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 // Note: This should remain the last member so it'll be destroyed and 486 // Note: This should remain the last member so it'll be destroyed and
486 // invalidate its weak pointers before any other members are destroyed. 487 // invalidate its weak pointers before any other members are destroyed.
487 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; 488 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_;
488 489
489 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); 490 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ);
490 }; 491 };
491 492
492 } // namespace bluez 493 } // namespace bluez
493 494
494 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ 495 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698