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

Side by Side Diff: device/bluetooth/bluez/bluetooth_socket_bluez.cc

Issue 1898643002: Refactor device::BluetoothGattXXX classes to split into remote/local. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/bluetooth_socket_bluez.h" 5 #include "device/bluetooth/bluez/bluetooth_socket_bluez.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <queue> 10 #include <queue>
11 #include <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/callback.h" 15 #include "base/callback.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/memory/linked_ptr.h" 17 #include "base/memory/linked_ptr.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "base/message_loop/message_loop.h" 19 #include "base/message_loop/message_loop.h"
20 #include "base/sequenced_task_runner.h" 20 #include "base/sequenced_task_runner.h"
21 #include "base/strings/string_util.h" 21 #include "base/strings/string_util.h"
22 #include "base/task_runner_util.h" 22 #include "base/task_runner_util.h"
23 #include "base/threading/thread_restrictions.h" 23 #include "base/threading/thread_restrictions.h"
24 #include "base/threading/worker_pool.h" 24 #include "base/threading/worker_pool.h"
25 #include "dbus/bus.h" 25 #include "dbus/bus.h"
26 #include "dbus/file_descriptor.h" 26 #include "dbus/file_descriptor.h"
27 #include "dbus/object_path.h" 27 #include "dbus/object_path.h"
28 #include "device/bluetooth/bluetooth_adapter.h" 28 #include "device/bluetooth/bluetooth_adapter.h"
29 #include "device/bluetooth/bluetooth_adapter_bluez.h"
30 #include "device/bluetooth/bluetooth_adapter_profile_bluez.h"
31 #include "device/bluetooth/bluetooth_device.h" 29 #include "device/bluetooth/bluetooth_device.h"
32 #include "device/bluetooth/bluetooth_device_bluez.h"
33 #include "device/bluetooth/bluetooth_socket.h" 30 #include "device/bluetooth/bluetooth_socket.h"
34 #include "device/bluetooth/bluetooth_socket_net.h" 31 #include "device/bluetooth/bluetooth_socket_net.h"
35 #include "device/bluetooth/bluetooth_socket_thread.h" 32 #include "device/bluetooth/bluetooth_socket_thread.h"
33 #include "device/bluetooth/bluez/bluetooth_adapter_bluez.h"
34 #include "device/bluetooth/bluez/bluetooth_adapter_profile_bluez.h"
35 #include "device/bluetooth/bluez/bluetooth_device_bluez.h"
36 #include "device/bluetooth/dbus/bluetooth_device_client.h" 36 #include "device/bluetooth/dbus/bluetooth_device_client.h"
37 #include "device/bluetooth/dbus/bluetooth_profile_manager_client.h" 37 #include "device/bluetooth/dbus/bluetooth_profile_manager_client.h"
38 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" 38 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h"
39 #include "device/bluetooth/dbus/bluez_dbus_manager.h" 39 #include "device/bluetooth/dbus/bluez_dbus_manager.h"
40 #include "net/base/ip_endpoint.h" 40 #include "net/base/ip_endpoint.h"
41 #include "net/base/net_errors.h" 41 #include "net/base/net_errors.h"
42 #include "third_party/cros_system_api/dbus/service_constants.h" 42 #include "third_party/cros_system_api/dbus/service_constants.h"
43 43
44 using device::BluetoothAdapter; 44 using device::BluetoothAdapter;
45 using device::BluetoothDevice; 45 using device::BluetoothDevice;
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 DCHECK(profile_); 533 DCHECK(profile_);
534 534
535 VLOG(1) << profile_->object_path().value() << ": Release profile"; 535 VLOG(1) << profile_->object_path().value() << ": Release profile";
536 536
537 static_cast<BluetoothAdapterBlueZ*>(adapter_.get()) 537 static_cast<BluetoothAdapterBlueZ*>(adapter_.get())
538 ->ReleaseProfile(device_path_, profile_); 538 ->ReleaseProfile(device_path_, profile_);
539 profile_ = nullptr; 539 profile_ = nullptr;
540 } 540 }
541 541
542 } // namespace bluez 542 } // namespace bluez
OLDNEW
« no previous file with comments | « device/bluetooth/bluez/bluetooth_socket_bluez.h ('k') | device/bluetooth/bluez/bluetooth_socket_bluez_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698