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

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

Issue 13872017: Bluetooth: gather usage metrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase since Cellular.* appeared under us Created 7 years, 7 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"
11 #include "device/bluetooth/bluetooth_device.h" 11 #include "device/bluetooth/bluetooth_device.h"
12 12
13 #ifdef __OBJC__ 13 #ifdef __OBJC__
14 @class IOBluetoothDevice; 14 @class IOBluetoothDevice;
15 #else 15 #else
16 class IOBluetoothDevice; 16 class IOBluetoothDevice;
17 #endif 17 #endif
18 18
19 namespace device { 19 namespace device {
20 20
21 class BluetoothDeviceMac : public BluetoothDevice { 21 class BluetoothDeviceMac : public BluetoothDevice {
22 public: 22 public:
23 explicit BluetoothDeviceMac(IOBluetoothDevice* device); 23 explicit BluetoothDeviceMac(IOBluetoothDevice* device);
24 virtual ~BluetoothDeviceMac(); 24 virtual ~BluetoothDeviceMac();
25 25
26 // BluetoothDevice override 26 // BluetoothDevice override
27 virtual uint32 GetBluetoothClass() const OVERRIDE;
27 virtual std::string GetAddress() const OVERRIDE; 28 virtual std::string GetAddress() const OVERRIDE;
29 virtual uint16 GetVendorID() const OVERRIDE;
30 virtual uint16 GetProductID() const OVERRIDE;
31 virtual uint16 GetDeviceID() const OVERRIDE;
28 virtual bool IsPaired() const OVERRIDE; 32 virtual bool IsPaired() const OVERRIDE;
29 virtual bool IsConnected() const OVERRIDE; 33 virtual bool IsConnected() const OVERRIDE;
30 virtual bool IsConnectable() const OVERRIDE; 34 virtual bool IsConnectable() const OVERRIDE;
31 virtual bool IsConnecting() const OVERRIDE; 35 virtual bool IsConnecting() const OVERRIDE;
32 virtual ServiceList GetServices() const OVERRIDE; 36 virtual ServiceList GetServices() const OVERRIDE;
33 virtual void GetServiceRecords( 37 virtual void GetServiceRecords(
34 const ServiceRecordsCallback& callback, 38 const ServiceRecordsCallback& callback,
35 const ErrorCallback& error_callback) OVERRIDE; 39 const ErrorCallback& error_callback) OVERRIDE;
36 virtual void ProvidesServiceWithName( 40 virtual void ProvidesServiceWithName(
37 const std::string& name, 41 const std::string& name,
(...skipping 24 matching lines...) Expand all
62 virtual void SetOutOfBandPairingData( 66 virtual void SetOutOfBandPairingData(
63 const BluetoothOutOfBandPairingData& data, 67 const BluetoothOutOfBandPairingData& data,
64 const base::Closure& callback, 68 const base::Closure& callback,
65 const ErrorCallback& error_callback) OVERRIDE; 69 const ErrorCallback& error_callback) OVERRIDE;
66 virtual void ClearOutOfBandPairingData( 70 virtual void ClearOutOfBandPairingData(
67 const base::Closure& callback, 71 const base::Closure& callback,
68 const ErrorCallback& error_callback) OVERRIDE; 72 const ErrorCallback& error_callback) OVERRIDE;
69 73
70 protected: 74 protected:
71 // BluetoothDevice override 75 // BluetoothDevice override
72 virtual uint32 GetBluetoothClass() const OVERRIDE;
73 virtual std::string GetDeviceName() const OVERRIDE; 76 virtual std::string GetDeviceName() const OVERRIDE;
74 77
75 private: 78 private:
76 friend class BluetoothAdapterMac; 79 friend class BluetoothAdapterMac;
77 80
78 IOBluetoothDevice* device_; 81 IOBluetoothDevice* device_;
79 82
80 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); 83 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac);
81 }; 84 };
82 85
83 } // namespace device 86 } // namespace device
84 87
85 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ 88 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_experimental_chromeos.cc ('k') | device/bluetooth/bluetooth_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698