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_profile_service_provider.h" | 5 #include "chromeos/dbus/fake_bluetooth_profile_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_profile_manager_client.h" | 8 #include "chromeos/dbus/fake_bluetooth_profile_manager_client.h" |
9 #include "dbus/object_path.h" | |
10 | 9 |
11 namespace chromeos { | 10 namespace chromeos { |
12 | 11 |
13 FakeBluetoothProfileServiceProvider::FakeBluetoothProfileServiceProvider( | 12 FakeBluetoothProfileServiceProvider::FakeBluetoothProfileServiceProvider( |
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 Profile: " << object_path_.value(); | 17 VLOG(1) << "Creating Bluetooth Profile: " << object_path_.value(); |
19 | 18 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 << device_path.value(); | 53 << device_path.value(); |
55 delegate_->RequestDisconnection(device_path, callback); | 54 delegate_->RequestDisconnection(device_path, callback); |
56 } | 55 } |
57 | 56 |
58 void FakeBluetoothProfileServiceProvider::Cancel() { | 57 void FakeBluetoothProfileServiceProvider::Cancel() { |
59 VLOG(1) << object_path_.value() << ": Cancel"; | 58 VLOG(1) << object_path_.value() << ": Cancel"; |
60 delegate_->Cancel(); | 59 delegate_->Cancel(); |
61 } | 60 } |
62 | 61 |
63 } // namespace chromeos | 62 } // namespace chromeos |
OLD | NEW |