| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_LOW_ENERGY_DISCOVERY_MANAGER_MAC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DISCOVERY_MANAGER_MAC_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DISCOVERY_MANAGER_MAC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DISCOVERY_MANAGER_MAC_H_ |
| 7 | 7 |
| 8 #if defined(OS_IOS) | 8 #if defined(OS_IOS) |
| 9 #import <CoreBluetooth/CoreBluetooth.h> | 9 #import <CoreBluetooth/CoreBluetooth.h> |
| 10 #else | 10 #else |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 virtual ~BluetoothLowEnergyDiscoveryManagerMac(); | 37 virtual ~BluetoothLowEnergyDiscoveryManagerMac(); |
| 38 | 38 |
| 39 // Returns true, if discovery is currently being performed. | 39 // Returns true, if discovery is currently being performed. |
| 40 virtual bool IsDiscovering() const; | 40 virtual bool IsDiscovering() const; |
| 41 | 41 |
| 42 // Initiates a discovery session. | 42 // Initiates a discovery session. |
| 43 // BluetoothLowEnergyDeviceMac objects discovered within a previous | 43 // BluetoothLowEnergyDeviceMac objects discovered within a previous |
| 44 // discovery session will be invalid. | 44 // discovery session will be invalid. |
| 45 virtual void StartDiscovery(BluetoothDevice::UUIDList services_uuids); | 45 virtual void StartDiscovery(BluetoothDevice::UUIDList); |
| 46 | 46 |
| 47 // Stops a discovery session. | 47 // Stops a discovery session. |
| 48 virtual void StopDiscovery(); | 48 virtual void StopDiscovery(); |
| 49 | 49 |
| 50 // Returns a new BluetoothLowEnergyDiscoveryManagerMac. | 50 // Returns a new BluetoothLowEnergyDiscoveryManagerMac. |
| 51 static BluetoothLowEnergyDiscoveryManagerMac* Create(Observer* observer); | 51 static BluetoothLowEnergyDiscoveryManagerMac* Create(Observer* observer); |
| 52 | 52 |
| 53 virtual void SetCentralManager(CBCentralManager* central_manager); | 53 virtual void SetCentralManager(CBCentralManager* central_manager); |
| 54 | 54 |
| 55 protected: | 55 protected: |
| (...skipping 30 matching lines...) Expand all Loading... |
| 86 | 86 |
| 87 // List of service UUIDs to scan. | 87 // List of service UUIDs to scan. |
| 88 BluetoothDevice::UUIDList services_uuids_; | 88 BluetoothDevice::UUIDList services_uuids_; |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDiscoveryManagerMac); | 90 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDiscoveryManagerMac); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace device | 93 } // namespace device |
| 94 | 94 |
| 95 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DISCOVERY_MANAGER_MAC_H_ | 95 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DISCOVERY_MANAGER_MAC_H_ |
| OLD | NEW |