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

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

Issue 476823003: Fix Bluetooth Classic device polling issue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address code review feedback. Created 6 years, 4 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 | « no previous file | device/bluetooth/bluetooth_task_manager_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_TASK_MANAGER_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 bool DiscoverServices(ScopedVector<DeviceState>* device_list, 172 bool DiscoverServices(ScopedVector<DeviceState>* device_list,
173 bool search_cached_services_only); 173 bool search_cached_services_only);
174 174
175 // Discover Bluetooth Classic services for the given |device_address|. 175 // Discover Bluetooth Classic services for the given |device_address|.
176 bool DiscoverClassicDeviceServices( 176 bool DiscoverClassicDeviceServices(
177 const std::string& device_address, 177 const std::string& device_address,
178 const GUID& protocol_uuid, 178 const GUID& protocol_uuid,
179 bool search_cached_services_only, 179 bool search_cached_services_only,
180 ScopedVector<ServiceRecordState>* service_record_states); 180 ScopedVector<ServiceRecordState>* service_record_states);
181 181
182 // Discover Bluetooth Classic services for the given |device_address|.
183 // Returns a Win32 error code.
184 int DiscoverClassicDeviceServicesWorker(
185 const std::string& device_address,
186 const GUID& protocol_uuid,
187 bool search_cached_services_only,
188 ScopedVector<ServiceRecordState>* service_record_states);
189
182 // Discover Bluetooth Low Energy services for the given |device_path|. 190 // Discover Bluetooth Low Energy services for the given |device_path|.
183 bool DiscoverLowEnergyDeviceServices( 191 bool DiscoverLowEnergyDeviceServices(
184 const base::FilePath& device_path, 192 const base::FilePath& device_path,
185 ScopedVector<ServiceRecordState>* service_record_states); 193 ScopedVector<ServiceRecordState>* service_record_states);
186 194
187 // UI task runner reference. 195 // UI task runner reference.
188 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; 196 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_;
189 197
190 scoped_refptr<base::SequencedWorkerPool> worker_pool_; 198 scoped_refptr<base::SequencedWorkerPool> worker_pool_;
191 scoped_refptr<base::SequencedTaskRunner> bluetooth_task_runner_; 199 scoped_refptr<base::SequencedTaskRunner> bluetooth_task_runner_;
(...skipping 10 matching lines...) Expand all
202 // Use for discarding too many log messages. 210 // Use for discarding too many log messages.
203 base::TimeTicks current_logging_batch_ticks_; 211 base::TimeTicks current_logging_batch_ticks_;
204 int current_logging_batch_count_; 212 int current_logging_batch_count_;
205 213
206 DISALLOW_COPY_AND_ASSIGN(BluetoothTaskManagerWin); 214 DISALLOW_COPY_AND_ASSIGN(BluetoothTaskManagerWin);
207 }; 215 };
208 216
209 } // namespace device 217 } // namespace device
210 218
211 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_ 219 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_task_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698