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

Side by Side Diff: device/bluetooth/bluetooth_adapter_win.h

Issue 2353133005: Add the chrome.bluetoothLowEnergy.setAdvertisingInterval API. (Closed)
Patch Set: . Created 4 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BLUETOOTH_ADAPTER_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const ServiceOptions& options, 71 const ServiceOptions& options,
72 const CreateServiceCallback& callback, 72 const CreateServiceCallback& callback,
73 const CreateServiceErrorCallback& error_callback) override; 73 const CreateServiceErrorCallback& error_callback) override;
74 void RegisterAudioSink( 74 void RegisterAudioSink(
75 const BluetoothAudioSink::Options& options, 75 const BluetoothAudioSink::Options& options,
76 const AcquiredCallback& callback, 76 const AcquiredCallback& callback,
77 const BluetoothAudioSink::ErrorCallback& error_callback) override; 77 const BluetoothAudioSink::ErrorCallback& error_callback) override;
78 void RegisterAdvertisement( 78 void RegisterAdvertisement(
79 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, 79 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data,
80 const CreateAdvertisementCallback& callback, 80 const CreateAdvertisementCallback& callback,
81 const CreateAdvertisementErrorCallback& error_callback) override; 81 const AdvertisementErrorCallback& error_callback) override;
82 BluetoothLocalGattService* GetGattService( 82 BluetoothLocalGattService* GetGattService(
83 const std::string& identifier) const override; 83 const std::string& identifier) const override;
84 84
85 // BluetoothTaskManagerWin::Observer override 85 // BluetoothTaskManagerWin::Observer override
86 void AdapterStateChanged( 86 void AdapterStateChanged(
87 const BluetoothTaskManagerWin::AdapterState& state) override; 87 const BluetoothTaskManagerWin::AdapterState& state) override;
88 void DiscoveryStarted(bool success) override; 88 void DiscoveryStarted(bool success) override;
89 void DiscoveryStopped() override; 89 void DiscoveryStopped() override;
90 void DevicesPolled(const ScopedVector<BluetoothTaskManagerWin::DeviceState>& 90 void DevicesPolled(const ScopedVector<BluetoothTaskManagerWin::DeviceState>&
91 devices) override; 91 devices) override;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // NOTE: This should remain the last member so it'll be destroyed and 167 // NOTE: This should remain the last member so it'll be destroyed and
168 // invalidate its weak pointers before any other members are destroyed. 168 // invalidate its weak pointers before any other members are destroyed.
169 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; 169 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_;
170 170
171 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); 171 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin);
172 }; 172 };
173 173
174 } // namespace device 174 } // namespace device
175 175
176 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ 176 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698