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

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

Issue 1672843002: Implement fake Bluetooth adapter for BluetoothTest.ConstructFakeAdapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move ScopedHandle from task manager to low level code Created 4 years, 10 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 // UI task runner reference. 211 // UI task runner reference.
212 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; 212 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_;
213 213
214 scoped_refptr<base::SequencedWorkerPool> worker_pool_; 214 scoped_refptr<base::SequencedWorkerPool> worker_pool_;
215 scoped_refptr<base::SequencedTaskRunner> bluetooth_task_runner_; 215 scoped_refptr<base::SequencedTaskRunner> bluetooth_task_runner_;
216 216
217 // List of observers interested in event notifications. 217 // List of observers interested in event notifications.
218 base::ObserverList<Observer> observers_; 218 base::ObserverList<Observer> observers_;
219 219
220 // Adapter handle owned by bluetooth task runner. 220 // Weak reference of the adapter handle, let BluetoothClassicWrapper handle
221 base::win::ScopedHandle adapter_handle_; 221 // the close of |adapter_handle_|.
222 HANDLE adapter_handle_;
222 223
223 // indicates whether the adapter is in discovery mode or not. 224 // indicates whether the adapter is in discovery mode or not.
224 bool discovering_; 225 bool discovering_;
225 226
226 // Use for discarding too many log messages. 227 // Use for discarding too many log messages.
227 base::TimeTicks current_logging_batch_ticks_; 228 base::TimeTicks current_logging_batch_ticks_;
228 int current_logging_batch_count_; 229 int current_logging_batch_count_;
229 230
230 DISALLOW_COPY_AND_ASSIGN(BluetoothTaskManagerWin); 231 DISALLOW_COPY_AND_ASSIGN(BluetoothTaskManagerWin);
231 }; 232 };
232 233
233 } // namespace device 234 } // namespace device
234 235
235 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_ 236 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698