OLD | NEW |
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/bluetooth_socket_chromeos.h" | 5 #include "device/bluetooth/bluetooth_socket_chromeos.h" |
6 | 6 |
7 #include <queue> | 7 #include <queue> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/message_loop/message_loop.h" |
17 #include "base/sequenced_task_runner.h" | 18 #include "base/sequenced_task_runner.h" |
18 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
19 #include "base/task_runner_util.h" | 20 #include "base/task_runner_util.h" |
20 #include "base/threading/thread_restrictions.h" | 21 #include "base/threading/thread_restrictions.h" |
21 #include "base/threading/worker_pool.h" | 22 #include "base/threading/worker_pool.h" |
22 #include "chromeos/dbus/bluetooth_device_client.h" | 23 #include "chromeos/dbus/bluetooth_device_client.h" |
23 #include "chromeos/dbus/bluetooth_profile_manager_client.h" | 24 #include "chromeos/dbus/bluetooth_profile_manager_client.h" |
24 #include "chromeos/dbus/bluetooth_profile_service_provider.h" | 25 #include "chromeos/dbus/bluetooth_profile_service_provider.h" |
25 #include "chromeos/dbus/dbus_thread_manager.h" | 26 #include "chromeos/dbus/dbus_thread_manager.h" |
26 #include "dbus/bus.h" | 27 #include "dbus/bus.h" |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 DCHECK(profile_); | 550 DCHECK(profile_); |
550 | 551 |
551 VLOG(1) << profile_->object_path().value() << ": Release profile"; | 552 VLOG(1) << profile_->object_path().value() << ": Release profile"; |
552 | 553 |
553 static_cast<BluetoothAdapterChromeOS*>(adapter_.get()) | 554 static_cast<BluetoothAdapterChromeOS*>(adapter_.get()) |
554 ->ReleaseProfile(device_path_, profile_); | 555 ->ReleaseProfile(device_path_, profile_); |
555 profile_ = nullptr; | 556 profile_ = nullptr; |
556 } | 557 } |
557 | 558 |
558 } // namespace chromeos | 559 } // namespace chromeos |
OLD | NEW |