OLD | NEW |
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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 // BluetoothDevice override | 34 // BluetoothDevice override |
35 uint32 GetBluetoothClass() const override; | 35 uint32 GetBluetoothClass() const override; |
36 std::string GetAddress() const override; | 36 std::string GetAddress() const override; |
37 VendorIDSource GetVendorIDSource() const override; | 37 VendorIDSource GetVendorIDSource() const override; |
38 uint16 GetVendorID() const override; | 38 uint16 GetVendorID() const override; |
39 uint16 GetProductID() const override; | 39 uint16 GetProductID() const override; |
40 uint16 GetDeviceID() const override; | 40 uint16 GetDeviceID() const override; |
41 bool IsPaired() const override; | 41 bool IsPaired() const override; |
42 bool IsConnected() const override; | 42 bool IsConnected() const override; |
| 43 bool IsGattConnected() const override; |
43 bool IsConnectable() const override; | 44 bool IsConnectable() const override; |
44 bool IsConnecting() const override; | 45 bool IsConnecting() const override; |
45 UUIDList GetUUIDs() const override; | 46 UUIDList GetUUIDs() const override; |
46 int16 GetInquiryRSSI() const override; | 47 int16 GetInquiryRSSI() const override; |
47 int16 GetInquiryTxPower() const override; | 48 int16 GetInquiryTxPower() const override; |
48 bool ExpectingPinCode() const override; | 49 bool ExpectingPinCode() const override; |
49 bool ExpectingPasskey() const override; | 50 bool ExpectingPasskey() const override; |
50 bool ExpectingConfirmation() const override; | 51 bool ExpectingConfirmation() const override; |
51 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; | 52 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; |
52 void Connect(PairingDelegate* pairing_delegate, | 53 void Connect(PairingDelegate* pairing_delegate, |
(...skipping 28 matching lines...) Expand all Loading... |
81 // fields and services stored in |device_state|. | 82 // fields and services stored in |device_state|. |
82 bool IsEqual(const BluetoothTaskManagerWin::DeviceState& device_state); | 83 bool IsEqual(const BluetoothTaskManagerWin::DeviceState& device_state); |
83 | 84 |
84 // Updates this instance with all fields and properties stored in | 85 // Updates this instance with all fields and properties stored in |
85 // |device_state|. | 86 // |device_state|. |
86 void Update(const BluetoothTaskManagerWin::DeviceState& device_state); | 87 void Update(const BluetoothTaskManagerWin::DeviceState& device_state); |
87 | 88 |
88 protected: | 89 protected: |
89 // BluetoothDevice override | 90 // BluetoothDevice override |
90 std::string GetDeviceName() const override; | 91 std::string GetDeviceName() const override; |
| 92 void CreateGattConnectionImpl() override; |
| 93 void DisconnectGatt() override; |
91 | 94 |
92 private: | 95 private: |
93 friend class BluetoothAdapterWin; | 96 friend class BluetoothAdapterWin; |
94 | 97 |
95 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList; | 98 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList; |
96 | 99 |
97 // Used by BluetoothAdapterWin to update the visible state during | 100 // Used by BluetoothAdapterWin to update the visible state during |
98 // discovery. | 101 // discovery. |
99 void SetVisible(bool visible); | 102 void SetVisible(bool visible); |
100 | 103 |
(...skipping 29 matching lines...) Expand all Loading... |
130 | 133 |
131 // The service records retrieved from SDP. | 134 // The service records retrieved from SDP. |
132 ServiceRecordList service_record_list_; | 135 ServiceRecordList service_record_list_; |
133 | 136 |
134 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); | 137 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); |
135 }; | 138 }; |
136 | 139 |
137 } // namespace device | 140 } // namespace device |
138 | 141 |
139 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ | 142 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ |
OLD | NEW |