| 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_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <set> | 12 #include <set> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <unordered_map> | 14 #include <unordered_map> |
| 15 #include <unordered_set> | 15 #include <unordered_set> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "base/callback.h" | 18 #include "base/callback.h" |
| 19 #include "base/containers/scoped_ptr_hash_map.h" | 19 #include "base/containers/scoped_ptr_hash_map.h" |
| 20 #include "base/gtest_prod_util.h" | 20 #include "base/gtest_prod_util.h" |
| 21 #include "base/memory/ref_counted.h" | 21 #include "base/memory/ref_counted.h" |
| 22 #include "base/optional.h" | 22 #include "base/optional.h" |
| 23 #include "base/strings/string16.h" | 23 #include "base/strings/string16.h" |
| 24 #include "base/time/time.h" | 24 #include "base/time/time.h" |
| 25 #include "device/bluetooth/bluetooth_common.h" | 25 #include "device/bluetooth/bluetooth_common.h" |
| 26 #include "device/bluetooth/bluetooth_export.h" | 26 #include "device/bluetooth/bluetooth_export.h" |
| 27 #include "device/bluetooth/bluetooth_uuid.h" | 27 #include "device/bluetooth/bluetooth_uuid.h" |
| 28 | 28 |
| 29 namespace base { | |
| 30 class BinaryValue; | |
| 31 } | |
| 32 | |
| 33 namespace device { | 29 namespace device { |
| 34 | 30 |
| 35 class BluetoothAdapter; | 31 class BluetoothAdapter; |
| 36 class BluetoothGattConnection; | 32 class BluetoothGattConnection; |
| 37 class BluetoothRemoteGattService; | 33 class BluetoothRemoteGattService; |
| 38 class BluetoothSocket; | 34 class BluetoothSocket; |
| 39 class BluetoothUUID; | 35 class BluetoothUUID; |
| 40 | 36 |
| 41 // BluetoothDevice represents a remote Bluetooth device, both its properties and | 37 // BluetoothDevice represents a remote Bluetooth device, both its properties and |
| 42 // capabilities as discovered by a local adapter and actions that may be | 38 // capabilities as discovered by a local adapter and actions that may be |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 | 671 |
| 676 private: | 672 private: |
| 677 // Returns a localized string containing the device's bluetooth address and | 673 // Returns a localized string containing the device's bluetooth address and |
| 678 // a device type for display when |name_| is empty. | 674 // a device type for display when |name_| is empty. |
| 679 base::string16 GetAddressWithLocalizedDeviceTypeName() const; | 675 base::string16 GetAddressWithLocalizedDeviceTypeName() const; |
| 680 }; | 676 }; |
| 681 | 677 |
| 682 } // namespace device | 678 } // namespace device |
| 683 | 679 |
| 684 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ | 680 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
| OLD | NEW |