| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/bluetooth_advertisement_bluez.h" | 5 #include "device/bluetooth/bluez/bluetooth_advertisement_bluez.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/guid.h" | 12 #include "base/guid.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 15 #include "dbus/bus.h" | 15 #include "dbus/bus.h" |
| 16 #include "dbus/object_path.h" | 16 #include "dbus/object_path.h" |
| 17 #include "device/bluetooth/bluetooth_adapter_bluez.h" | 17 #include "device/bluetooth/bluez/bluetooth_adapter_bluez.h" |
| 18 #include "device/bluetooth/dbus/bluetooth_le_advertising_manager_client.h" | 18 #include "device/bluetooth/dbus/bluetooth_le_advertising_manager_client.h" |
| 19 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 19 #include "device/bluetooth/dbus/bluez_dbus_manager.h" |
| 20 #include "third_party/cros_system_api/dbus/service_constants.h" | 20 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 void UnregisterFailure(device::BluetoothAdvertisement::ErrorCode error) { | 24 void UnregisterFailure(device::BluetoothAdvertisement::ErrorCode error) { |
| 25 LOG(ERROR) | 25 LOG(ERROR) |
| 26 << "BluetoothAdvertisementBlueZ::Unregister failed with error code = " | 26 << "BluetoothAdvertisementBlueZ::Unregister failed with error code = " |
| 27 << error; | 27 << error; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 } | 130 } |
| 131 | 131 |
| 132 void BluetoothAdvertisementBlueZ::Released() { | 132 void BluetoothAdvertisementBlueZ::Released() { |
| 133 LOG(WARNING) << "Advertisement released."; | 133 LOG(WARNING) << "Advertisement released."; |
| 134 provider_.reset(); | 134 provider_.reset(); |
| 135 FOR_EACH_OBSERVER(BluetoothAdvertisement::Observer, observers_, | 135 FOR_EACH_OBSERVER(BluetoothAdvertisement::Observer, observers_, |
| 136 AdvertisementReleased(this)); | 136 AdvertisementReleased(this)); |
| 137 } | 137 } |
| 138 | 138 |
| 139 } // namespace bluez | 139 } // namespace bluez |
| OLD | NEW |