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

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

Powered by Google App Engine
This is Rietveld 408576698