| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |