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

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

Issue 13862023: Add abstract BluetoothProfile class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix error in windows file Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_DEVICE_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_
6 #define DEVICE_BLUETOOTH_BlUETOOTH_DEVICE_MAC_H_ 6 #define DEVICE_BLUETOOTH_BlUETOOTH_DEVICE_MAC_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual void ConfirmPairing() OVERRIDE; 48 virtual void ConfirmPairing() OVERRIDE;
49 virtual void RejectPairing() OVERRIDE; 49 virtual void RejectPairing() OVERRIDE;
50 virtual void CancelPairing() OVERRIDE; 50 virtual void CancelPairing() OVERRIDE;
51 virtual void Disconnect( 51 virtual void Disconnect(
52 const base::Closure& callback, 52 const base::Closure& callback,
53 const ErrorCallback& error_callback) OVERRIDE; 53 const ErrorCallback& error_callback) OVERRIDE;
54 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; 54 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE;
55 virtual void ConnectToService( 55 virtual void ConnectToService(
56 const std::string& service_uuid, 56 const std::string& service_uuid,
57 const SocketCallback& callback) OVERRIDE; 57 const SocketCallback& callback) OVERRIDE;
58 virtual void ConnectToProfile(
59 device::BluetoothProfile* profile,
60 const ErrorCallback& error_callback) OVERRIDE;
58 virtual void SetOutOfBandPairingData( 61 virtual void SetOutOfBandPairingData(
59 const BluetoothOutOfBandPairingData& data, 62 const BluetoothOutOfBandPairingData& data,
60 const base::Closure& callback, 63 const base::Closure& callback,
61 const ErrorCallback& error_callback) OVERRIDE; 64 const ErrorCallback& error_callback) OVERRIDE;
62 virtual void ClearOutOfBandPairingData( 65 virtual void ClearOutOfBandPairingData(
63 const base::Closure& callback, 66 const base::Closure& callback,
64 const ErrorCallback& error_callback) OVERRIDE; 67 const ErrorCallback& error_callback) OVERRIDE;
65 68
66 protected: 69 protected:
67 // BluetoothDevice override 70 // BluetoothDevice override
68 virtual uint32 GetBluetoothClass() const OVERRIDE; 71 virtual uint32 GetBluetoothClass() const OVERRIDE;
69 virtual std::string GetDeviceName() const OVERRIDE; 72 virtual std::string GetDeviceName() const OVERRIDE;
70 73
71 private: 74 private:
72 friend class BluetoothAdapterMac; 75 friend class BluetoothAdapterMac;
73 76
74 IOBluetoothDevice* device_; 77 IOBluetoothDevice* device_;
75 78
76 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); 79 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac);
77 }; 80 };
78 81
79 } // namespace device 82 } // namespace device
80 83
81 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ 84 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698