OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "device/bluetooth/bluez/bluetooth_device_bluez.h" | 5 #include "device/bluetooth/bluez/bluetooth_device_bluez.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram_macros.h" |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "dbus/bus.h" | 18 #include "dbus/bus.h" |
19 #include "device/bluetooth/bluetooth_socket.h" | 19 #include "device/bluetooth/bluetooth_socket.h" |
20 #include "device/bluetooth/bluetooth_socket_thread.h" | 20 #include "device/bluetooth/bluetooth_socket_thread.h" |
21 #include "device/bluetooth/bluetooth_uuid.h" | 21 #include "device/bluetooth/bluetooth_uuid.h" |
22 #include "device/bluetooth/bluez/bluetooth_adapter_bluez.h" | 22 #include "device/bluetooth/bluez/bluetooth_adapter_bluez.h" |
23 #include "device/bluetooth/bluez/bluetooth_gatt_connection_bluez.h" | 23 #include "device/bluetooth/bluez/bluetooth_gatt_connection_bluez.h" |
24 #include "device/bluetooth/bluez/bluetooth_pairing_bluez.h" | 24 #include "device/bluetooth/bluez/bluetooth_pairing_bluez.h" |
25 #include "device/bluetooth/bluez/bluetooth_remote_gatt_service_bluez.h" | 25 #include "device/bluetooth/bluez/bluetooth_remote_gatt_service_bluez.h" |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 void BluetoothDeviceBlueZ::OnForgetError(const ErrorCallback& error_callback, | 947 void BluetoothDeviceBlueZ::OnForgetError(const ErrorCallback& error_callback, |
948 const std::string& error_name, | 948 const std::string& error_name, |
949 const std::string& error_message) { | 949 const std::string& error_message) { |
950 LOG(WARNING) << object_path_.value() | 950 LOG(WARNING) << object_path_.value() |
951 << ": Failed to remove device: " << error_name << ": " | 951 << ": Failed to remove device: " << error_name << ": " |
952 << error_message; | 952 << error_message; |
953 error_callback.Run(); | 953 error_callback.Run(); |
954 } | 954 } |
955 | 955 |
956 } // namespace bluez | 956 } // namespace bluez |
OLD | NEW |