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

Side by Side Diff: device/bluetooth/bluez/bluetooth_adapter_profile_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_adapter_profile_bluez.h" 5 #include "device/bluetooth/bluez/bluetooth_adapter_profile_bluez.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "dbus/bus.h" 14 #include "dbus/bus.h"
15 #include "dbus/object_path.h" 15 #include "dbus/object_path.h"
16 #include "device/bluetooth/bluetooth_adapter_bluez.h"
17 #include "device/bluetooth/bluetooth_uuid.h" 16 #include "device/bluetooth/bluetooth_uuid.h"
17 #include "device/bluetooth/bluez/bluetooth_adapter_bluez.h"
18 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" 18 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h"
19 #include "device/bluetooth/dbus/bluez_dbus_manager.h" 19 #include "device/bluetooth/dbus/bluez_dbus_manager.h"
20 20
21 namespace bluez { 21 namespace bluez {
22 22
23 // static 23 // static
24 void BluetoothAdapterProfileBlueZ::Register( 24 void BluetoothAdapterProfileBlueZ::Register(
25 const device::BluetoothUUID& uuid, 25 const device::BluetoothUUID& uuid,
26 const bluez::BluetoothProfileManagerClient::Options& options, 26 const bluez::BluetoothProfileManagerClient::Options& options,
27 const ProfileRegisteredCallback& success_callback, 27 const ProfileRegisteredCallback& success_callback,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Cancel() should only go to a delegate accepting connections. 153 // Cancel() should only go to a delegate accepting connections.
154 if (delegates_.find("") == delegates_.end()) { 154 if (delegates_.find("") == delegates_.end()) {
155 VLOG(1) << object_path_.value() << ": Cancel with no delegate!"; 155 VLOG(1) << object_path_.value() << ": Cancel with no delegate!";
156 return; 156 return;
157 } 157 }
158 158
159 delegates_[""]->Cancel(); 159 delegates_[""]->Cancel();
160 } 160 }
161 161
162 } // namespace bluez 162 } // namespace bluez
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698