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

Side by Side Diff: device/bluetooth/bluetooth_device_win.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
« no previous file with comments | « device/bluetooth/bluetooth_device_mac.mm ('k') | device/bluetooth/bluetooth_device_win.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "device/bluetooth/bluetooth_device.h" 12 #include "device/bluetooth/bluetooth_device.h"
13 #include "device/bluetooth/bluetooth_task_manager_win.h" 13 #include "device/bluetooth/bluetooth_task_manager_win.h"
14 14
15 namespace device { 15 namespace device {
16 16
17 class BluetoothAdapterWin; 17 class BluetoothAdapterWin;
18 18
19 class BluetoothDeviceWin : public BluetoothDevice { 19 class BluetoothDeviceWin : public BluetoothDevice {
20 public: 20 public:
21 explicit BluetoothDeviceWin( 21 explicit BluetoothDeviceWin(
22 const BluetoothTaskManagerWin::DeviceState& state); 22 const BluetoothTaskManagerWin::DeviceState& state);
23 virtual ~BluetoothDeviceWin(); 23 virtual ~BluetoothDeviceWin();
24 24
25 // BluetoothDevice override 25 // BluetoothDevice override
26 virtual uint32 GetBluetoothClass() const OVERRIDE;
26 virtual std::string GetAddress() const OVERRIDE; 27 virtual std::string GetAddress() const OVERRIDE;
28 virtual uint16 GetVendorID() const OVERRIDE;
29 virtual uint16 GetProductID() const OVERRIDE;
30 virtual uint16 GetDeviceID() const OVERRIDE;
27 virtual bool IsPaired() const OVERRIDE; 31 virtual bool IsPaired() const OVERRIDE;
28 virtual bool IsConnected() const OVERRIDE; 32 virtual bool IsConnected() const OVERRIDE;
29 virtual bool IsConnectable() const OVERRIDE; 33 virtual bool IsConnectable() const OVERRIDE;
30 virtual bool IsConnecting() const OVERRIDE; 34 virtual bool IsConnecting() const OVERRIDE;
31 virtual ServiceList GetServices() const OVERRIDE; 35 virtual ServiceList GetServices() const OVERRIDE;
32 virtual void GetServiceRecords( 36 virtual void GetServiceRecords(
33 const ServiceRecordsCallback& callback, 37 const ServiceRecordsCallback& callback,
34 const ErrorCallback& error_callback) OVERRIDE; 38 const ErrorCallback& error_callback) OVERRIDE;
35 virtual void ProvidesServiceWithName( 39 virtual void ProvidesServiceWithName(
36 const std::string& name, 40 const std::string& name,
(...skipping 24 matching lines...) Expand all
61 virtual void SetOutOfBandPairingData( 65 virtual void SetOutOfBandPairingData(
62 const BluetoothOutOfBandPairingData& data, 66 const BluetoothOutOfBandPairingData& data,
63 const base::Closure& callback, 67 const base::Closure& callback,
64 const ErrorCallback& error_callback) OVERRIDE; 68 const ErrorCallback& error_callback) OVERRIDE;
65 virtual void ClearOutOfBandPairingData( 69 virtual void ClearOutOfBandPairingData(
66 const base::Closure& callback, 70 const base::Closure& callback,
67 const ErrorCallback& error_callback) OVERRIDE; 71 const ErrorCallback& error_callback) OVERRIDE;
68 72
69 protected: 73 protected:
70 // BluetoothDevice override 74 // BluetoothDevice override
71 virtual uint32 GetBluetoothClass() const OVERRIDE;
72 virtual std::string GetDeviceName() const OVERRIDE; 75 virtual std::string GetDeviceName() const OVERRIDE;
73 76
74 private: 77 private:
75 friend class BluetoothAdapterWin; 78 friend class BluetoothAdapterWin;
76 79
77 // Used by BluetoothAdapterWin to update the visible state during 80 // Used by BluetoothAdapterWin to update the visible state during
78 // discovery. 81 // discovery.
79 void SetVisible(bool visible); 82 void SetVisible(bool visible);
80 83
81 // Computes the fingerprint that can be used to compare the devices. 84 // Computes the fingerprint that can be used to compare the devices.
(...skipping 29 matching lines...) Expand all
111 // Used to compare the devices. 114 // Used to compare the devices.
112 uint32 device_fingerprint_; 115 uint32 device_fingerprint_;
113 ServiceRecordList service_record_list_; 116 ServiceRecordList service_record_list_;
114 117
115 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); 118 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin);
116 }; 119 };
117 120
118 } // namespace device 121 } // namespace device
119 122
120 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 123 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_mac.mm ('k') | device/bluetooth/bluetooth_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698