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

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

Issue 395633003: Enumerate Bluetooth LE services and expose them to chrome.bluetooth API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix x64 build. 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
(...skipping 28 matching lines...) Expand all
39 AdapterState(); 39 AdapterState();
40 ~AdapterState(); 40 ~AdapterState();
41 std::string name; 41 std::string name;
42 std::string address; 42 std::string address;
43 bool powered; 43 bool powered;
44 }; 44 };
45 45
46 struct ServiceRecordState { 46 struct ServiceRecordState {
47 ServiceRecordState(); 47 ServiceRecordState();
48 ~ServiceRecordState(); 48 ~ServiceRecordState();
49 // Properties common to Bluetooth Radio and LE devices.
49 std::string name; 50 std::string name;
50 std::string address; 51 // Properties specific to Bluetooth Radio devices.
51 std::vector<uint8> sdp_bytes; 52 std::vector<uint8> sdp_bytes;
53 // Properties specific to Bluetooth LE devices.
54 BluetoothUUID gatt_uuid;
52 }; 55 };
53 56
54 struct DeviceState { 57 struct DeviceState {
55 DeviceState(); 58 DeviceState();
56 ~DeviceState(); 59 ~DeviceState();
57 // Properties common to Bluetooth Radio and LE devices. 60 // Properties common to Bluetooth Radio and LE devices.
58 std::string name; 61 std::string name;
59 std::string address; 62 std::string address;
60 bool visible; 63 bool visible;
61 bool connected; 64 bool connected;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 162
160 // indicates whether the adapter is in discovery mode or not. 163 // indicates whether the adapter is in discovery mode or not.
161 bool discovering_; 164 bool discovering_;
162 165
163 DISALLOW_COPY_AND_ASSIGN(BluetoothTaskManagerWin); 166 DISALLOW_COPY_AND_ASSIGN(BluetoothTaskManagerWin);
164 }; 167 };
165 168
166 } // namespace device 169 } // namespace device
167 170
168 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_ 171 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_socket_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