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

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

Issue 1898643002: Refactor device::BluetoothGattXXX classes to split into remote/local. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_unittest.cc ('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 <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
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
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_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_unittest.cc ('k') | device/bluetooth/bluetooth_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698