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

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

Issue 13416005: Bluetooth: clean up BluetoothDevice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make GetServices return a copy of the list Created 7 years, 8 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
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 struct ServiceRecordState { 43 struct ServiceRecordState {
44 std::string name; 44 std::string name;
45 std::string address; 45 std::string address;
46 std::vector<uint8> sdp_bytes; 46 std::vector<uint8> sdp_bytes;
47 }; 47 };
48 48
49 struct DeviceState { 49 struct DeviceState {
50 std::string name; 50 std::string name;
51 std::string address; 51 std::string address;
52 uint32 bluetooth_class; 52 uint32 bluetooth_class;
53 bool visible;
54 bool connected; 53 bool connected;
55 bool authenticated; 54 bool authenticated;
56 ScopedVector<ServiceRecordState> service_record_states; 55 ScopedVector<ServiceRecordState> service_record_states;
57 }; 56 };
58 57
59 class Observer { 58 class Observer {
60 public: 59 public:
61 virtual ~Observer() {} 60 virtual ~Observer() {}
62 61
63 virtual void AdapterStateChanged(const AdapterState& state) {} 62 virtual void AdapterStateChanged(const AdapterState& state) {}
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 145
147 // indicates whether the adapter is in discovery mode or not. 146 // indicates whether the adapter is in discovery mode or not.
148 bool discovering_; 147 bool discovering_;
149 148
150 DISALLOW_COPY_AND_ASSIGN(BluetoothTaskManagerWin); 149 DISALLOW_COPY_AND_ASSIGN(BluetoothTaskManagerWin);
151 }; 150 };
152 151
153 } // namespace device 152 } // namespace device
154 153
155 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_ 154 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TASK_MANAGER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698