Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(963)

Side by Side Diff: device/bluetooth/bluez/bluetooth_advertisement_bluez.cc

Issue 1898643002: Refactor device::BluetoothGattXXX classes to split into remote/local. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698