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

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

Issue 418483003: device/bluetooth: Move GATT observer methods to BluetoothAdapter::Observer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 explicit BluetoothDeviceWin( 24 explicit BluetoothDeviceWin(
25 const BluetoothTaskManagerWin::DeviceState& state, 25 const BluetoothTaskManagerWin::DeviceState& state,
26 scoped_refptr<base::SequencedTaskRunner> ui_task_runner, 26 scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
27 scoped_refptr<BluetoothSocketThread> socket_thread, 27 scoped_refptr<BluetoothSocketThread> socket_thread,
28 net::NetLog* net_log, 28 net::NetLog* net_log,
29 const net::NetLog::Source& net_log_source); 29 const net::NetLog::Source& net_log_source);
30 virtual ~BluetoothDeviceWin(); 30 virtual ~BluetoothDeviceWin();
31 31
32 // BluetoothDevice override 32 // BluetoothDevice override
33 virtual void AddObserver(
34 device::BluetoothDevice::Observer* observer) OVERRIDE;
35 virtual void RemoveObserver(
36 device::BluetoothDevice::Observer* observer) OVERRIDE;
37 virtual uint32 GetBluetoothClass() const OVERRIDE; 33 virtual uint32 GetBluetoothClass() const OVERRIDE;
38 virtual std::string GetAddress() const OVERRIDE; 34 virtual std::string GetAddress() const OVERRIDE;
39 virtual VendorIDSource GetVendorIDSource() const OVERRIDE; 35 virtual VendorIDSource GetVendorIDSource() const OVERRIDE;
40 virtual uint16 GetVendorID() const OVERRIDE; 36 virtual uint16 GetVendorID() const OVERRIDE;
41 virtual uint16 GetProductID() const OVERRIDE; 37 virtual uint16 GetProductID() const OVERRIDE;
42 virtual uint16 GetDeviceID() const OVERRIDE; 38 virtual uint16 GetDeviceID() const OVERRIDE;
43 virtual int GetRSSI() const OVERRIDE; 39 virtual int GetRSSI() const OVERRIDE;
44 virtual int GetCurrentHostTransmitPower() const OVERRIDE; 40 virtual int GetCurrentHostTransmitPower() const OVERRIDE;
45 virtual int GetMaximumHostTransmitPower() const OVERRIDE; 41 virtual int GetMaximumHostTransmitPower() const OVERRIDE;
46 virtual bool IsPaired() const OVERRIDE; 42 virtual bool IsPaired() const OVERRIDE;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 85
90 // Used by BluetoothAdapterWin to update the visible state during 86 // Used by BluetoothAdapterWin to update the visible state during
91 // discovery. 87 // discovery.
92 void SetVisible(bool visible); 88 void SetVisible(bool visible);
93 89
94 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; 90 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_;
95 scoped_refptr<BluetoothSocketThread> socket_thread_; 91 scoped_refptr<BluetoothSocketThread> socket_thread_;
96 net::NetLog* net_log_; 92 net::NetLog* net_log_;
97 net::NetLog::Source net_log_source_; 93 net::NetLog::Source net_log_source_;
98 94
99 // List of observers interested in event notifications from us.
100 ObserverList<Observer> observers_;
101
102 // The Bluetooth class of the device, a bitmask that may be decoded using 95 // The Bluetooth class of the device, a bitmask that may be decoded using
103 // https://www.bluetooth.org/Technical/AssignedNumbers/baseband.htm 96 // https://www.bluetooth.org/Technical/AssignedNumbers/baseband.htm
104 uint32 bluetooth_class_; 97 uint32 bluetooth_class_;
105 98
106 // The name of the device, as supplied by the remote device. 99 // The name of the device, as supplied by the remote device.
107 std::string name_; 100 std::string name_;
108 101
109 // The Bluetooth address of the device. 102 // The Bluetooth address of the device.
110 std::string address_; 103 std::string address_;
111 104
(...skipping 12 matching lines...) Expand all
124 // The service records retrieved from SDP. 117 // The service records retrieved from SDP.
125 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList; 118 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList;
126 ServiceRecordList service_record_list_; 119 ServiceRecordList service_record_list_;
127 120
128 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); 121 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin);
129 }; 122 };
130 123
131 } // namespace device 124 } // namespace device
132 125
133 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 126 #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