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

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

Issue 791763005: Added bluetooth LE support on Mac platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « device/bluetooth/bluetooth.gyp ('k') | device/bluetooth/bluetooth_low_energy_device_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DISCOVERY_MANAGER_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_MANAGER_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_MANAGER_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_MANAGER_MAC_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 @class IOBluetoothDevice; 10 @class IOBluetoothDevice;
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 // Called when |this| manager has found a device through classic device 22 // Called when |this| manager has found a device through classic device
23 // inquiry in the form of an IOBluetoothDevice. 23 // inquiry in the form of an IOBluetoothDevice.
24 virtual void DeviceFound(IOBluetoothDevice* device) = 0; 24 virtual void DeviceFound(IOBluetoothDevice* device) = 0;
25 25
26 // Called when device discovery is no longer running, due to either a call 26 // Called when device discovery is no longer running, due to either a call
27 // to BluetoothDiscoveryManagerMac::StopDiscovery or an unexpected reason, 27 // to BluetoothDiscoveryManagerMac::StopDiscovery or an unexpected reason,
28 // such as when a user disables the controller, in which case the value of 28 // such as when a user disables the controller, in which case the value of
29 // |unexpected| will be true. 29 // |unexpected| will be true.
30 virtual void DiscoveryStopped(bool unexpected) = 0; 30 virtual void DiscoveryStopped(bool unexpected) = 0;
31
32 protected:
33 virtual ~Observer() {}
31 }; 34 };
32 35
33 virtual ~BluetoothDiscoveryManagerMac(); 36 virtual ~BluetoothDiscoveryManagerMac();
34 37
35 // Returns true, if discovery is currently being performed. 38 // Returns true, if discovery is currently being performed.
36 virtual bool IsDiscovering() const = 0; 39 virtual bool IsDiscovering() const = 0;
37 40
38 // Initiates a discovery session. Returns true on success or if discovery 41 // Initiates a discovery session. Returns true on success or if discovery
39 // is already running. Returns false on failure. 42 // is already running. Returns false on failure.
40 virtual bool StartDiscovery() = 0; 43 virtual bool StartDiscovery() = 0;
(...skipping 14 matching lines...) Expand all
55 // Observer interested in notifications from us. 58 // Observer interested in notifications from us.
56 Observer* observer_; 59 Observer* observer_;
57 60
58 private: 61 private:
59 DISALLOW_COPY_AND_ASSIGN(BluetoothDiscoveryManagerMac); 62 DISALLOW_COPY_AND_ASSIGN(BluetoothDiscoveryManagerMac);
60 }; 63 };
61 64
62 } // namespace device 65 } // namespace device
63 66
64 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_MANAGER_MAC_H_ 67 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DISCOVERY_MANAGER_MAC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth.gyp ('k') | device/bluetooth/bluetooth_low_energy_device_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698