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

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

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

Powered by Google App Engine
This is Rietveld 408576698