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

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

Issue 378293007: Expose "visible" and "authenticated" properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth.le.win.part3
Patch Set: Created 6 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/files/file_path.h"
11 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
13 #include "base/observer_list.h" 14 #include "base/observer_list.h"
14 #include "base/win/scoped_handle.h" 15 #include "base/win/scoped_handle.h"
15 #include "device/bluetooth/bluetooth_adapter.h" 16 #include "device/bluetooth/bluetooth_adapter.h"
16 17
17 namespace base { 18 namespace base {
18 19
19 class SequencedTaskRunner; 20 class SequencedTaskRunner;
20 class SequencedWorkerPool; 21 class SequencedWorkerPool;
(...skipping 25 matching lines...) Expand all
46 ServiceRecordState(); 47 ServiceRecordState();
47 ~ServiceRecordState(); 48 ~ServiceRecordState();
48 std::string name; 49 std::string name;
49 std::string address; 50 std::string address;
50 std::vector<uint8> sdp_bytes; 51 std::vector<uint8> sdp_bytes;
51 }; 52 };
52 53
53 struct DeviceState { 54 struct DeviceState {
54 DeviceState(); 55 DeviceState();
55 ~DeviceState(); 56 ~DeviceState();
57 // Properties common to Bluetooth Radio and LE devices.
56 std::string name; 58 std::string name;
57 std::string address; 59 std::string address;
58 uint32 bluetooth_class;
59 bool visible; 60 bool visible;
60 bool connected; 61 bool connected;
61 bool authenticated; 62 bool authenticated;
62 ScopedVector<ServiceRecordState> service_record_states; 63 ScopedVector<ServiceRecordState> service_record_states;
64 // Properties specific to Bluetooth Radio devices.
65 uint32 bluetooth_class;
66 // Properties specific to Bluetooth LE devices.
67 base::FilePath path;
63 }; 68 };
64 69
65 class Observer { 70 class Observer {
66 public: 71 public:
67 virtual ~Observer() {} 72 virtual ~Observer() {}
68 73
69 virtual void AdapterStateChanged(const AdapterState& state) {} 74 virtual void AdapterStateChanged(const AdapterState& state) {}
70 virtual void DiscoveryStarted(bool success) {} 75 virtual void DiscoveryStarted(bool success) {}
71 virtual void DiscoveryStopped() {} 76 virtual void DiscoveryStopped() {}
72 virtual void DevicesUpdated(const ScopedVector<DeviceState>& devices) {} 77 virtual void DevicesUpdated(const ScopedVector<DeviceState>& devices) {}
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 159
155 // indicates whether the adapter is in discovery mode or not. 160 // indicates whether the adapter is in discovery mode or not.
156 bool discovering_; 161 bool discovering_;
157 162
158 DISALLOW_COPY_AND_ASSIGN(BluetoothTaskManagerWin); 163 DISALLOW_COPY_AND_ASSIGN(BluetoothTaskManagerWin);
159 }; 164 };
160 165
161 } // namespace device 166 } // namespace device
162 167
163 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_ 168 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_win.cc ('k') | device/bluetooth/bluetooth_task_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698