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_DEVICE_CHROMEOS_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 | 392 |
393 // The name of the device, as supplied by the remote device. | 393 // The name of the device, as supplied by the remote device. |
394 std::string name_; | 394 std::string name_; |
395 | 395 |
396 // The Bluetooth address of the device. | 396 // The Bluetooth address of the device. |
397 std::string address_; | 397 std::string address_; |
398 | 398 |
399 // Tracked device state, updated by the adapter managing the lifecyle of | 399 // Tracked device state, updated by the adapter managing the lifecyle of |
400 // the device. | 400 // the device. |
401 bool paired_; | 401 bool paired_; |
| 402 bool trusted_; |
402 bool connected_; | 403 bool connected_; |
403 | 404 |
404 // Indicates whether the device normally accepts connections initiated from | 405 // Indicates whether the device normally accepts connections initiated from |
405 // the adapter once paired. | 406 // the adapter once paired. |
406 bool connectable_; | 407 bool connectable_; |
407 | 408 |
408 // Indicated whether the device is in a connecting status. | 409 // Indicated whether the device is in a connecting status. |
409 bool connecting_; | 410 bool connecting_; |
410 | 411 |
411 // Used by BluetoothAdapterChromeOS (a friend) to avoid removing discovered | 412 // Used by BluetoothAdapterChromeOS (a friend) to avoid removing discovered |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 // Note: This should remain the last member so it'll be destroyed and | 448 // Note: This should remain the last member so it'll be destroyed and |
448 // invalidate its weak pointers before any other members are destroyed. | 449 // invalidate its weak pointers before any other members are destroyed. |
449 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; | 450 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; |
450 | 451 |
451 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); | 452 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); |
452 }; | 453 }; |
453 | 454 |
454 } // namespace chromeos | 455 } // namespace chromeos |
455 | 456 |
456 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ | 457 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ |
OLD | NEW |