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

Side by Side Diff: device/bluetooth/bluetooth_adapter_bluez.cc

Issue 1872943002: Add support for local services/characteristics/descriptors. (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
« no previous file with comments | « device/bluetooth/bluetooth_adapter_bluez.h ('k') | device/bluetooth/bluetooth_device_bluez.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_adapter_bluez.h" 5 #include "device/bluetooth/bluetooth_adapter_bluez.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <set>
8 #include <string> 9 #include <string>
9 #include <utility> 10 #include <utility>
10 11
11 #include "base/bind.h" 12 #include "base/bind.h"
12 #include "base/location.h" 13 #include "base/location.h"
13 #include "base/logging.h" 14 #include "base/logging.h"
14 #include "base/metrics/histogram.h" 15 #include "base/metrics/histogram.h"
15 #include "base/sequenced_task_runner.h" 16 #include "base/sequenced_task_runner.h"
16 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
17 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
18 #include "base/thread_task_runner_handle.h" 19 #include "base/thread_task_runner_handle.h"
19 #include "build/build_config.h" 20 #include "build/build_config.h"
20 #include "device/bluetooth/bluetooth_adapter_profile_bluez.h" 21 #include "device/bluetooth/bluetooth_adapter_profile_bluez.h"
21 #include "device/bluetooth/bluetooth_advertisement_bluez.h" 22 #include "device/bluetooth/bluetooth_advertisement_bluez.h"
22 #include "device/bluetooth/bluetooth_audio_sink_bluez.h" 23 #include "device/bluetooth/bluetooth_audio_sink_bluez.h"
23 #include "device/bluetooth/bluetooth_device.h" 24 #include "device/bluetooth/bluetooth_device.h"
24 #include "device/bluetooth/bluetooth_device_bluez.h" 25 #include "device/bluetooth/bluetooth_device_bluez.h"
25 #include "device/bluetooth/bluetooth_discovery_session_outcome.h" 26 #include "device/bluetooth/bluetooth_discovery_session_outcome.h"
26 #include "device/bluetooth/bluetooth_pairing_bluez.h" 27 #include "device/bluetooth/bluetooth_pairing_bluez.h"
27 #include "device/bluetooth/bluetooth_remote_gatt_characteristic_bluez.h"
28 #include "device/bluetooth/bluetooth_remote_gatt_descriptor_bluez.h"
29 #include "device/bluetooth/bluetooth_remote_gatt_service_bluez.h"
30 #include "device/bluetooth/bluetooth_socket_bluez.h" 28 #include "device/bluetooth/bluetooth_socket_bluez.h"
31 #include "device/bluetooth/bluetooth_socket_thread.h" 29 #include "device/bluetooth/bluetooth_socket_thread.h"
32 #include "device/bluetooth/bluetooth_uuid.h" 30 #include "device/bluetooth/bluetooth_uuid.h"
33 #include "device/bluetooth/dbus/bluetooth_adapter_client.h" 31 #include "device/bluetooth/dbus/bluetooth_adapter_client.h"
34 #include "device/bluetooth/dbus/bluetooth_agent_manager_client.h" 32 #include "device/bluetooth/dbus/bluetooth_agent_manager_client.h"
35 #include "device/bluetooth/dbus/bluetooth_agent_service_provider.h" 33 #include "device/bluetooth/dbus/bluetooth_agent_service_provider.h"
36 #include "device/bluetooth/dbus/bluetooth_device_client.h" 34 #include "device/bluetooth/dbus/bluetooth_device_client.h"
37 #include "device/bluetooth/dbus/bluetooth_input_client.h" 35 #include "device/bluetooth/dbus/bluetooth_input_client.h"
38 #include "device/bluetooth/dbus/bluez_dbus_manager.h" 36 #include "device/bluetooth/dbus/bluez_dbus_manager.h"
39 #include "third_party/cros_system_api/dbus/service_constants.h" 37 #include "third_party/cros_system_api/dbus/service_constants.h"
(...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 1447
1450 // If the queued request resulted in a pending call, then let it 1448 // If the queued request resulted in a pending call, then let it
1451 // asynchonously process the remaining queued requests once the pending 1449 // asynchonously process the remaining queued requests once the pending
1452 // call returns. 1450 // call returns.
1453 if (discovery_request_pending_) 1451 if (discovery_request_pending_)
1454 return; 1452 return;
1455 } 1453 }
1456 } 1454 }
1457 1455
1458 } // namespace bluez 1456 } // namespace bluez
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_bluez.h ('k') | device/bluetooth/bluetooth_device_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698