Fix build break
[chromium-blink-merge.git] / device / bluetooth / bluetooth_device_mac.h
blob66ab5d6eb2960fb72dfc3b910f0fbdc37cca00ef
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_
6 #define DEVICE_BLUETOOTH_BlUETOOTH_DEVICE_MAC_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "device/bluetooth/bluetooth_device.h"
13 #ifdef __OBJC__
14 @class IOBluetoothDevice;
15 #else
16 class IOBluetoothDevice;
17 #endif
19 namespace device {
21 class BluetoothDeviceMac : public BluetoothDevice {
22 public:
23 explicit BluetoothDeviceMac(IOBluetoothDevice* device);
24 virtual ~BluetoothDeviceMac();
26 // BluetoothDevice override
27 virtual std::string GetAddress() const OVERRIDE;
28 virtual bool IsPaired() const OVERRIDE;
29 virtual bool IsConnected() const OVERRIDE;
30 virtual bool IsConnectable() const OVERRIDE;
31 virtual bool IsConnecting() const OVERRIDE;
32 virtual ServiceList GetServices() const OVERRIDE;
33 virtual void GetServiceRecords(
34 const ServiceRecordsCallback& callback,
35 const ErrorCallback& error_callback) OVERRIDE;
36 virtual void ProvidesServiceWithName(
37 const std::string& name,
38 const ProvidesServiceCallback& callback) OVERRIDE;
39 virtual bool ExpectingPinCode() const OVERRIDE;
40 virtual bool ExpectingPasskey() const OVERRIDE;
41 virtual bool ExpectingConfirmation() const OVERRIDE;
42 virtual void Connect(
43 PairingDelegate* pairing_delegate,
44 const base::Closure& callback,
45 const ConnectErrorCallback& error_callback) OVERRIDE;
46 virtual void SetPinCode(const std::string& pincode) OVERRIDE;
47 virtual void SetPasskey(uint32 passkey) OVERRIDE;
48 virtual void ConfirmPairing() OVERRIDE;
49 virtual void RejectPairing() OVERRIDE;
50 virtual void CancelPairing() OVERRIDE;
51 virtual void Disconnect(
52 const base::Closure& callback,
53 const ErrorCallback& error_callback) OVERRIDE;
54 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE;
55 virtual void ConnectToService(
56 const std::string& service_uuid,
57 const SocketCallback& callback) OVERRIDE;
58 virtual void SetOutOfBandPairingData(
59 const BluetoothOutOfBandPairingData& data,
60 const base::Closure& callback,
61 const ErrorCallback& error_callback) OVERRIDE;
62 virtual void ClearOutOfBandPairingData(
63 const base::Closure& callback,
64 const ErrorCallback& error_callback) OVERRIDE;
66 protected:
67 // BluetoothDevice override
68 virtual uint32 GetBluetoothClass() const OVERRIDE;
69 virtual std::string GetDeviceName() const OVERRIDE;
71 private:
72 friend class BluetoothAdapterMac;
74 IOBluetoothDevice* device_;
76 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac);
79 } // namespace device
81 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_