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

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

Issue 1681853003: Add BluetoothRemoteGattServiceWin to BluetoothDeviceWin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 } 368 }
369 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size(); 369 num_discovery_listeners_ -= on_stop_discovery_callbacks_.size();
370 on_stop_discovery_callbacks_.clear(); 370 on_stop_discovery_callbacks_.clear();
371 return; 371 return;
372 } 372 }
373 373
374 discovery_status_ = DISCOVERY_STOPPING; 374 discovery_status_ = DISCOVERY_STOPPING;
375 task_manager_->PostStopDiscoveryTask(); 375 task_manager_->PostStopDiscoveryTask();
376 } 376 }
377 377
378 void BluetoothAdapterWin::NotifyGattServiceAdded(
379 BluetoothDevice* device,
380 BluetoothGattService* service) {
381 DCHECK(service);
382 DCHECK(device);
383 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
384 GattServiceAdded(this, device, service));
385 }
386
387 void BluetoothAdapterWin::NotifyGattServiceRemoved(
388 BluetoothDevice* device,
389 BluetoothGattService* service) {
390 DCHECK(service);
391 DCHECK(device);
392 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
393 GattServiceRemoved(this, device, service));
394 }
395
396 void BluetoothAdapterWin::NotifyGattServicesDiscovered(
397 BluetoothDevice* device) {
398 DCHECK(device);
399 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
400 GattServicesDiscovered(this, device));
401 }
402
403 void BluetoothAdapterWin::NotifyGattDiscoveryCompleteForService(
404 BluetoothGattService* service) {
405 DCHECK(service);
406 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
407 GattDiscoveryCompleteForService(this, service));
408 }
409
410 void BluetoothAdapterWin::NotifyGattServiceChanged(
411 BluetoothGattService* service) {
412 DCHECK(service);
413 FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
414 GattServiceChanged(this, service));
415 }
416
378 } // namespace device 417 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698