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

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

Issue 1284073002: bluetooth: Add adapter to BluetoothDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-drop-callback-
Patch Set: Merge TOT Created 5 years, 3 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 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_CLASSIC_DEVICE_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_
7 7
8 #import <IOBluetooth/IOBluetooth.h> 8 #import <IOBluetooth/IOBluetooth.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/mac/scoped_nsobject.h" 13 #include "base/mac/scoped_nsobject.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "device/bluetooth/bluetooth_device_mac.h" 15 #include "device/bluetooth/bluetooth_device_mac.h"
16 16
17 @class IOBluetoothDevice; 17 @class IOBluetoothDevice;
18 18
19 namespace device { 19 namespace device {
20 20
21 class BluetoothAdapterMac;
22
21 class BluetoothClassicDeviceMac : public BluetoothDeviceMac { 23 class BluetoothClassicDeviceMac : public BluetoothDeviceMac {
22 public: 24 public:
23 explicit BluetoothClassicDeviceMac(IOBluetoothDevice* device); 25 explicit BluetoothClassicDeviceMac(BluetoothAdapterMac* adapter,
26 IOBluetoothDevice* device);
24 ~BluetoothClassicDeviceMac() override; 27 ~BluetoothClassicDeviceMac() override;
25 28
26 // BluetoothDevice override 29 // BluetoothDevice override
27 uint32 GetBluetoothClass() const override; 30 uint32 GetBluetoothClass() const override;
28 std::string GetAddress() const override; 31 std::string GetAddress() const override;
29 VendorIDSource GetVendorIDSource() const override; 32 VendorIDSource GetVendorIDSource() const override;
30 uint16 GetVendorID() const override; 33 uint16 GetVendorID() const override;
31 uint16 GetProductID() const override; 34 uint16 GetProductID() const override;
32 uint16 GetDeviceID() const override; 35 uint16 GetDeviceID() const override;
33 bool IsPaired() const override; 36 bool IsPaired() const override;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 BluetoothHCITransmitPowerLevelType power_level_type) const; 87 BluetoothHCITransmitPowerLevelType power_level_type) const;
85 88
86 base::scoped_nsobject<IOBluetoothDevice> device_; 89 base::scoped_nsobject<IOBluetoothDevice> device_;
87 90
88 DISALLOW_COPY_AND_ASSIGN(BluetoothClassicDeviceMac); 91 DISALLOW_COPY_AND_ASSIGN(BluetoothClassicDeviceMac);
89 }; 92 };
90 93
91 } // namespace device 94 } // namespace device
92 95
93 #endif // DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_ 96 #endif // DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_win.cc ('k') | device/bluetooth/bluetooth_classic_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698