OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chromeos/dbus/fake_bluetooth_agent_service_provider.h" | 5 #include "chromeos/dbus/fake_bluetooth_agent_service_provider.h" |
6 | 6 |
7 #include "chromeos/dbus/dbus_thread_manager.h" | 7 #include "chromeos/dbus/dbus_thread_manager.h" |
8 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h" | 8 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h" |
9 #include "dbus/object_path.h" | |
10 | 9 |
11 namespace chromeos { | 10 namespace chromeos { |
12 | 11 |
13 FakeBluetoothAgentServiceProvider::FakeBluetoothAgentServiceProvider( | 12 FakeBluetoothAgentServiceProvider::FakeBluetoothAgentServiceProvider( |
14 const dbus::ObjectPath& object_path, | 13 const dbus::ObjectPath& object_path, |
15 Delegate* delegate) | 14 Delegate* delegate) |
16 : object_path_(object_path), | 15 : object_path_(object_path), |
17 delegate_(delegate) { | 16 delegate_(delegate) { |
18 VLOG(1) << "Creating Bluetooth Agent: " << object_path_.value(); | 17 VLOG(1) << "Creating Bluetooth Agent: " << object_path_.value(); |
19 | 18 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 << device_path.value(); | 93 << device_path.value(); |
95 delegate_->AuthorizeService(device_path, uuid, callback); | 94 delegate_->AuthorizeService(device_path, uuid, callback); |
96 } | 95 } |
97 | 96 |
98 void FakeBluetoothAgentServiceProvider::Cancel() { | 97 void FakeBluetoothAgentServiceProvider::Cancel() { |
99 VLOG(1) << object_path_.value() << ": Cancel"; | 98 VLOG(1) << object_path_.value() << ": Cancel"; |
100 delegate_->Cancel(); | 99 delegate_->Cancel(); |
101 } | 100 } |
102 | 101 |
103 } // namespace chromeos | 102 } // namespace chromeos |
OLD | NEW |