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

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

Issue 2861533004: Implement chrome.bluetoothLowEnergy.resetAdvertising(). (Closed)
Patch Set: Implement chrome.bluetoothLowEnergy.resetAllAdvertisements(). Created 3 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 std::unique_ptr<device::BluetoothAdvertisement::Data> advertisement_data, 125 std::unique_ptr<device::BluetoothAdvertisement::Data> advertisement_data,
126 const CreateAdvertisementCallback& callback, 126 const CreateAdvertisementCallback& callback,
127 const AdvertisementErrorCallback& error_callback) override; 127 const AdvertisementErrorCallback& error_callback) override;
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 void ResetAdvertising(
136 const base::Closure& callback,
137 const AdvertisementErrorCallback& error_callback) override;
138
135 device::BluetoothLocalGattService* GetGattService( 139 device::BluetoothLocalGattService* GetGattService(
136 const std::string& identifier) const override; 140 const std::string& identifier) const override;
137 141
138 // These functions are specifically for use with ARC. They have no need to 142 // 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 143 // exist for other platforms, hence we're putting them directly in the BlueZ
140 // specific code. 144 // specific code.
141 145
142 // Creates a service record with the SDP server running on this adapter. This 146 // 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 147 // only creates the record, it does not create a listening socket for the
144 // service. 148 // service.
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 // Note: This should remain the last member so it'll be destroyed and 507 // Note: This should remain the last member so it'll be destroyed and
504 // invalidate its weak pointers before any other members are destroyed. 508 // invalidate its weak pointers before any other members are destroyed.
505 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; 509 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_;
506 510
507 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); 511 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ);
508 }; 512 };
509 513
510 } // namespace bluez 514 } // namespace bluez
511 515
512 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ 516 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698