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

Side by Side Diff: device/bluetooth/dbus/bluetooth_agent_service_provider.cc

Issue 2084463002: BlueZ + DBus implementations of create/remove service record functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 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/dbus/bluetooth_agent_service_provider.h" 5 #include "device/bluetooth/dbus/bluetooth_agent_service_provider.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h"
11 #include "base/logging.h" 12 #include "base/logging.h"
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
14 #include "base/threading/platform_thread.h" 15 #include "base/threading/platform_thread.h"
15 #include "dbus/exported_object.h" 16 #include "dbus/exported_object.h"
16 #include "dbus/message.h" 17 #include "dbus/message.h"
17 #include "device/bluetooth/dbus/bluez_dbus_manager.h" 18 #include "device/bluetooth/dbus/bluez_dbus_manager.h"
18 #include "device/bluetooth/dbus/fake_bluetooth_agent_service_provider.h" 19 #include "device/bluetooth/dbus/fake_bluetooth_agent_service_provider.h"
19 #include "third_party/cros_system_api/dbus/service_constants.h" 20 #include "third_party/cros_system_api/dbus/service_constants.h"
20 21
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 dbus::Bus* bus, 439 dbus::Bus* bus,
439 const dbus::ObjectPath& object_path, 440 const dbus::ObjectPath& object_path,
440 Delegate* delegate) { 441 Delegate* delegate) {
441 if (!bluez::BluezDBusManager::Get()->IsUsingFakes()) { 442 if (!bluez::BluezDBusManager::Get()->IsUsingFakes()) {
442 return new BluetoothAgentServiceProviderImpl(bus, object_path, delegate); 443 return new BluetoothAgentServiceProviderImpl(bus, object_path, delegate);
443 } 444 }
444 return new FakeBluetoothAgentServiceProvider(object_path, delegate); 445 return new FakeBluetoothAgentServiceProvider(object_path, delegate);
445 } 446 }
446 447
447 } // namespace bluez 448 } // namespace bluez
OLDNEW
« no previous file with comments | « device/bluetooth/dbus/bluetooth_agent_service_provider.h ('k') | device/bluetooth/dbus/fake_bluetooth_adapter_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698