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

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

Issue 2009753002: bluetooth: Make public BluetoothDevice::GetName method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split out name/alias Created 4 years, 5 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 <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_vector.h" 17 #include "base/memory/scoped_vector.h"
18 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "base/optional.h"
19 #include "base/win/scoped_handle.h" 20 #include "base/win/scoped_handle.h"
20 #include "device/bluetooth/bluetooth_adapter.h" 21 #include "device/bluetooth/bluetooth_adapter.h"
21 #include "device/bluetooth/bluetooth_export.h" 22 #include "device/bluetooth/bluetooth_export.h"
22 #include "device/bluetooth/bluetooth_low_energy_win.h" 23 #include "device/bluetooth/bluetooth_low_energy_win.h"
23 24
24 namespace base { 25 namespace base {
25 26
26 class SequencedTaskRunner; 27 class SequencedTaskRunner;
27 class SequencedWorkerPool; 28 class SequencedWorkerPool;
28 29
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 }; 68 };
68 69
69 struct DEVICE_BLUETOOTH_EXPORT DeviceState { 70 struct DEVICE_BLUETOOTH_EXPORT DeviceState {
70 DeviceState(); 71 DeviceState();
71 ~DeviceState(); 72 ~DeviceState();
72 73
73 bool is_bluetooth_classic() const { return path.empty(); } 74 bool is_bluetooth_classic() const { return path.empty(); }
74 75
75 // Properties common to Bluetooth Classic and LE devices. 76 // Properties common to Bluetooth Classic and LE devices.
76 std::string address; // This uniquely identifies the device. 77 std::string address; // This uniquely identifies the device.
77 std::string name; // Friendly name 78 base::Optional<std::string> name; // Friendly name
78 bool visible; 79 bool visible;
79 bool connected; 80 bool connected;
80 bool authenticated; 81 bool authenticated;
81 ScopedVector<ServiceRecordState> service_record_states; 82 ScopedVector<ServiceRecordState> service_record_states;
82 // Properties specific to Bluetooth Classic devices. 83 // Properties specific to Bluetooth Classic devices.
83 uint32_t bluetooth_class; 84 uint32_t bluetooth_class;
84 // Properties specific to Bluetooth LE devices. 85 // Properties specific to Bluetooth LE devices.
85 base::FilePath path; 86 base::FilePath path;
86 }; 87 };
87 88
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 // Use for discarding too many log messages. 324 // Use for discarding too many log messages.
324 base::TimeTicks current_logging_batch_ticks_; 325 base::TimeTicks current_logging_batch_ticks_;
325 int current_logging_batch_count_; 326 int current_logging_batch_count_;
326 327
327 DISALLOW_COPY_AND_ASSIGN(BluetoothTaskManagerWin); 328 DISALLOW_COPY_AND_ASSIGN(BluetoothTaskManagerWin);
328 }; 329 };
329 330
330 } // namespace device 331 } // namespace device
331 332
332 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_ 333 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_win.cc ('k') | device/bluetooth/bluez/bluetooth_device_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698