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

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

Issue 735893002: Add GetConnectionInfo function for BluetoothDevice, replacing the existing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile errors on other platforms Created 5 years, 11 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
« 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 19 matching lines...) Expand all
30 const net::NetLog::Source& net_log_source); 30 const net::NetLog::Source& net_log_source);
31 virtual ~BluetoothDeviceWin(); 31 virtual ~BluetoothDeviceWin();
32 32
33 // BluetoothDevice override 33 // BluetoothDevice override
34 virtual uint32 GetBluetoothClass() const override; 34 virtual uint32 GetBluetoothClass() const override;
35 virtual std::string GetAddress() const override; 35 virtual std::string GetAddress() const override;
36 virtual VendorIDSource GetVendorIDSource() const override; 36 virtual VendorIDSource GetVendorIDSource() const override;
37 virtual uint16 GetVendorID() const override; 37 virtual uint16 GetVendorID() const override;
38 virtual uint16 GetProductID() const override; 38 virtual uint16 GetProductID() const override;
39 virtual uint16 GetDeviceID() const override; 39 virtual uint16 GetDeviceID() const override;
40 virtual int GetRSSI() const override;
41 virtual int GetCurrentHostTransmitPower() const override;
42 virtual int GetMaximumHostTransmitPower() const override;
43 virtual bool IsPaired() const override; 40 virtual bool IsPaired() const override;
44 virtual bool IsConnected() const override; 41 virtual bool IsConnected() const override;
45 virtual bool IsConnectable() const override; 42 virtual bool IsConnectable() const override;
46 virtual bool IsConnecting() const override; 43 virtual bool IsConnecting() const override;
47 virtual UUIDList GetUUIDs() const override; 44 virtual UUIDList GetUUIDs() const override;
48 virtual bool ExpectingPinCode() const override; 45 virtual bool ExpectingPinCode() const override;
49 virtual bool ExpectingPasskey() const override; 46 virtual bool ExpectingPasskey() const override;
50 virtual bool ExpectingConfirmation() const override; 47 virtual bool ExpectingConfirmation() const override;
48 virtual void GetConnectionInfo(
49 const ConnectionInfoCallback& callback) override;
51 virtual void Connect( 50 virtual void Connect(
52 PairingDelegate* pairing_delegate, 51 PairingDelegate* pairing_delegate,
53 const base::Closure& callback, 52 const base::Closure& callback,
54 const ConnectErrorCallback& error_callback) override; 53 const ConnectErrorCallback& error_callback) override;
55 virtual void SetPinCode(const std::string& pincode) override; 54 virtual void SetPinCode(const std::string& pincode) override;
56 virtual void SetPasskey(uint32 passkey) override; 55 virtual void SetPasskey(uint32 passkey) override;
57 virtual void ConfirmPairing() override; 56 virtual void ConfirmPairing() override;
58 virtual void RejectPairing() override; 57 virtual void RejectPairing() override;
59 virtual void CancelPairing() override; 58 virtual void CancelPairing() override;
60 virtual void Disconnect( 59 virtual void Disconnect(
61 const base::Closure& callback, 60 const base::Closure& callback,
62 const ErrorCallback& error_callback) override; 61 const ErrorCallback& error_callback) override;
63 virtual void Forget(const ErrorCallback& error_callback) override; 62 virtual void Forget(const ErrorCallback& error_callback) override;
64 virtual void ConnectToService( 63 virtual void ConnectToService(
65 const BluetoothUUID& uuid, 64 const BluetoothUUID& uuid,
66 const ConnectToServiceCallback& callback, 65 const ConnectToServiceCallback& callback,
67 const ConnectToServiceErrorCallback& error_callback) override; 66 const ConnectToServiceErrorCallback& error_callback) override;
68 virtual void ConnectToServiceInsecurely( 67 virtual void ConnectToServiceInsecurely(
69 const BluetoothUUID& uuid, 68 const BluetoothUUID& uuid,
70 const ConnectToServiceCallback& callback, 69 const ConnectToServiceCallback& callback,
71 const ConnectToServiceErrorCallback& error_callback) override; 70 const ConnectToServiceErrorCallback& error_callback) override;
72 virtual void CreateGattConnection( 71 virtual void CreateGattConnection(
73 const GattConnectionCallback& callback, 72 const GattConnectionCallback& callback,
74 const ConnectErrorCallback& error_callback) override; 73 const ConnectErrorCallback& error_callback) override;
75 virtual void StartConnectionMonitor(
76 const base::Closure& callback,
77 const ErrorCallback& error_callback) override;
78 74
79 // Used by BluetoothProfileWin to retrieve the service record for the given 75 // Used by BluetoothProfileWin to retrieve the service record for the given
80 // |uuid|. 76 // |uuid|.
81 const BluetoothServiceRecordWin* GetServiceRecord( 77 const BluetoothServiceRecordWin* GetServiceRecord(
82 const device::BluetoothUUID& uuid) const; 78 const device::BluetoothUUID& uuid) const;
83 79
84 // Returns true if all fields and services of this instance are equal to the 80 // Returns true if all fields and services of this instance are equal to the
85 // fields and services stored in |device_state|. 81 // fields and services stored in |device_state|.
86 bool IsEqual(const BluetoothTaskManagerWin::DeviceState& device_state); 82 bool IsEqual(const BluetoothTaskManagerWin::DeviceState& device_state);
87 83
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // The service records retrieved from SDP. 129 // The service records retrieved from SDP.
134 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList; 130 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList;
135 ServiceRecordList service_record_list_; 131 ServiceRecordList service_record_list_;
136 132
137 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); 133 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin);
138 }; 134 };
139 135
140 } // namespace device 136 } // namespace device
141 137
142 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 138 #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