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

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

Issue 1920353002: Implement create attribute API functions for BTLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@api_changes
Patch Set: owners Created 4 years, 7 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CreateAdvertisementErrorCallback& 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(
206 const std::string& identifier) const {
207 return nullptr;
208 }
209
205 void BluetoothAdapterWin::RemovePairingDelegateInternal( 210 void BluetoothAdapterWin::RemovePairingDelegateInternal(
206 BluetoothDevice::PairingDelegate* pairing_delegate) { 211 BluetoothDevice::PairingDelegate* pairing_delegate) {
207 } 212 }
208 213
209 void BluetoothAdapterWin::AdapterStateChanged( 214 void BluetoothAdapterWin::AdapterStateChanged(
210 const BluetoothTaskManagerWin::AdapterState& state) { 215 const BluetoothTaskManagerWin::AdapterState& state) {
211 DCHECK(thread_checker_.CalledOnValidThread()); 216 DCHECK(thread_checker_.CalledOnValidThread());
212 name_ = state.name; 217 name_ = state.name;
213 bool was_present = IsPresent(); 218 bool was_present = IsPresent();
214 bool is_present = !state.address.empty(); 219 bool is_present = !state.address.empty();
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size(); 388 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size();
384 on_stop_discovery_callbacks_.clear(); 389 on_stop_discovery_callbacks_.clear();
385 return; 390 return;
386 } 391 }
387 392
388 discovery_status_ = DISCOVERY_STOPPING; 393 discovery_status_ = DISCOVERY_STOPPING;
389 task_manager_->PostStopDiscoveryTask(); 394 task_manager_->PostStopDiscoveryTask();
390 } 395 }
391 396
392 } // namespace device 397 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_win.h ('k') | device/bluetooth/bluetooth_local_gatt_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698