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

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

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 #include "device/bluetooth/bluetooth_adapter_win.h" 5 #include "device/bluetooth/bluetooth_adapter_win.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 const BluetoothAudioSink::Options& options, 190 const BluetoothAudioSink::Options& options,
191 const AcquiredCallback& callback, 191 const AcquiredCallback& callback,
192 const BluetoothAudioSink::ErrorCallback& error_callback) { 192 const BluetoothAudioSink::ErrorCallback& error_callback) {
193 NOTIMPLEMENTED(); 193 NOTIMPLEMENTED();
194 error_callback.Run(BluetoothAudioSink::ERROR_UNSUPPORTED_PLATFORM); 194 error_callback.Run(BluetoothAudioSink::ERROR_UNSUPPORTED_PLATFORM);
195 } 195 }
196 196
197 void BluetoothAdapterWin::RegisterAdvertisement( 197 void BluetoothAdapterWin::RegisterAdvertisement(
198 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, 198 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data,
199 const CreateAdvertisementCallback& callback, 199 const CreateAdvertisementCallback& callback,
200 const CreateAdvertisementErrorCallback& error_callback) { 200 const AdvertisementErrorCallback& error_callback) {
201 NOTIMPLEMENTED(); 201 NOTIMPLEMENTED();
202 error_callback.Run(BluetoothAdvertisement::ERROR_UNSUPPORTED_PLATFORM); 202 error_callback.Run(BluetoothAdvertisement::ERROR_UNSUPPORTED_PLATFORM);
203 } 203 }
204 204
205 BluetoothLocalGattService* BluetoothAdapterWin::GetGattService( 205 BluetoothLocalGattService* BluetoothAdapterWin::GetGattService(
206 const std::string& identifier) const { 206 const std::string& identifier) const {
207 return nullptr; 207 return nullptr;
208 } 208 }
209 209
210 void BluetoothAdapterWin::RemovePairingDelegateInternal( 210 void BluetoothAdapterWin::RemovePairingDelegateInternal(
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size(); 388 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size();
389 on_stop_discovery_callbacks_.clear(); 389 on_stop_discovery_callbacks_.clear();
390 return; 390 return;
391 } 391 }
392 392
393 discovery_status_ = DISCOVERY_STOPPING; 393 discovery_status_ = DISCOVERY_STOPPING;
394 task_manager_->PostStopDiscoveryTask(); 394 task_manager_->PostStopDiscoveryTask();
395 } 395 }
396 396
397 } // namespace device 397 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698