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_device_client.h" | 5 #include "chromeos/dbus/fake_bluetooth_device_client.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <unistd.h> | 8 #include <unistd.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 #include <sys/socket.h> | 10 #include <sys/socket.h> |
11 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
13 #include <map> | 13 #include <map> |
14 #include <string> | 14 #include <string> |
15 #include <utility> | 15 #include <utility> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "base/bind.h" | 18 #include "base/bind.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
21 #include "base/message_loop.h" | 21 #include "base/message_loop.h" |
22 #include "base/stl_util.h" | 22 #include "base/stl_util.h" |
23 #include "base/threading/worker_pool.h" | 23 #include "base/threading/worker_pool.h" |
24 #include "base/time.h" | 24 #include "base/time/time.h" |
25 #include "chromeos/dbus/dbus_thread_manager.h" | 25 #include "chromeos/dbus/dbus_thread_manager.h" |
26 #include "chromeos/dbus/fake_bluetooth_adapter_client.h" | 26 #include "chromeos/dbus/fake_bluetooth_adapter_client.h" |
27 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h" | 27 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h" |
28 #include "chromeos/dbus/fake_bluetooth_agent_service_provider.h" | 28 #include "chromeos/dbus/fake_bluetooth_agent_service_provider.h" |
29 #include "chromeos/dbus/fake_bluetooth_input_client.h" | 29 #include "chromeos/dbus/fake_bluetooth_input_client.h" |
30 #include "chromeos/dbus/fake_bluetooth_profile_manager_client.h" | 30 #include "chromeos/dbus/fake_bluetooth_profile_manager_client.h" |
31 #include "chromeos/dbus/fake_bluetooth_profile_service_provider.h" | 31 #include "chromeos/dbus/fake_bluetooth_profile_service_provider.h" |
32 #include "dbus/file_descriptor.h" | 32 #include "dbus/file_descriptor.h" |
33 #include "dbus/object_path.h" | 33 #include "dbus/object_path.h" |
34 #include "third_party/cros_system_api/dbus/service_constants.h" | 34 #include "third_party/cros_system_api/dbus/service_constants.h" |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 // TODO(keybuk): tear down this side of the connection | 1045 // TODO(keybuk): tear down this side of the connection |
1046 callback.Run(); | 1046 callback.Run(); |
1047 } else if (status == BluetoothProfileServiceProvider::Delegate::CANCELLED) { | 1047 } else if (status == BluetoothProfileServiceProvider::Delegate::CANCELLED) { |
1048 error_callback.Run(bluetooth_device::kErrorFailed, "Canceled"); | 1048 error_callback.Run(bluetooth_device::kErrorFailed, "Canceled"); |
1049 } else if (status == BluetoothProfileServiceProvider::Delegate::REJECTED) { | 1049 } else if (status == BluetoothProfileServiceProvider::Delegate::REJECTED) { |
1050 error_callback.Run(bluetooth_device::kErrorFailed, "Rejected"); | 1050 error_callback.Run(bluetooth_device::kErrorFailed, "Rejected"); |
1051 } | 1051 } |
1052 } | 1052 } |
1053 | 1053 |
1054 } // namespace chromeos | 1054 } // namespace chromeos |
OLD | NEW |