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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 // Checks if GATT service with |uuid| and |attribute_handle| has already been | 111 // Checks if GATT service with |uuid| and |attribute_handle| has already been |
112 // discovered. | 112 // discovered. |
113 bool IsGattServiceDiscovered(BluetoothUUID& uuid, uint16_t attribute_handle); | 113 bool IsGattServiceDiscovered(BluetoothUUID& uuid, uint16_t attribute_handle); |
114 | 114 |
115 // Checks if |service| still exist on device according to newly discovered | 115 // Checks if |service| still exist on device according to newly discovered |
116 // |service_state|. | 116 // |service_state|. |
117 bool DoesGattServiceExist( | 117 bool DoesGattServiceExist( |
118 const ScopedVector<BluetoothTaskManagerWin::ServiceRecordState>& | 118 const ScopedVector<BluetoothTaskManagerWin::ServiceRecordState>& |
119 service_state, | 119 service_state, |
120 BluetoothGattService* service); | 120 BluetoothRemoteGattService* service); |
121 | 121 |
122 // Updates the GATT services with the services stored in |service_state|. | 122 // Updates the GATT services with the services stored in |service_state|. |
123 void UpdateGattServices( | 123 void UpdateGattServices( |
124 const ScopedVector<BluetoothTaskManagerWin::ServiceRecordState>& | 124 const ScopedVector<BluetoothTaskManagerWin::ServiceRecordState>& |
125 service_state); | 125 service_state); |
126 | 126 |
127 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; | 127 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; |
128 scoped_refptr<BluetoothSocketThread> socket_thread_; | 128 scoped_refptr<BluetoothSocketThread> socket_thread_; |
129 net::NetLog* net_log_; | 129 net::NetLog* net_log_; |
130 net::NetLog::Source net_log_source_; | 130 net::NetLog::Source net_log_source_; |
(...skipping 22 matching lines...) Expand all Loading... |
153 | 153 |
154 // The service records retrieved from SDP. | 154 // The service records retrieved from SDP. |
155 ServiceRecordList service_record_list_; | 155 ServiceRecordList service_record_list_; |
156 | 156 |
157 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); | 157 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); |
158 }; | 158 }; |
159 | 159 |
160 } // namespace device | 160 } // namespace device |
161 | 161 |
162 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ | 162 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ |
OLD | NEW |