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

Side by Side Diff: device/bluetooth/bluez/bluetooth_adapter_bluez.h

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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <queue> 12 #include <queue>
13 #include <string> 13 #include <string>
14 #include <tuple> 14 #include <tuple>
15 #include <utility> 15 #include <utility>
16 #include <vector> 16 #include <vector>
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 friend class BluetoothBlueZTest_Shutdown_OnStartDiscoveryError_Test; 161 friend class BluetoothBlueZTest_Shutdown_OnStartDiscoveryError_Test;
162 friend class BluetoothBlueZTest_Shutdown_OnStopDiscovery_Test; 162 friend class BluetoothBlueZTest_Shutdown_OnStopDiscovery_Test;
163 friend class BluetoothBlueZTest_Shutdown_OnStopDiscoveryError_Test; 163 friend class BluetoothBlueZTest_Shutdown_OnStopDiscoveryError_Test;
164 friend class device::BluetoothTestBlueZ; 164 friend class device::BluetoothTestBlueZ;
165 165
166 // typedef for callback parameters that are passed to AddDiscoverySession 166 // typedef for callback parameters that are passed to AddDiscoverySession
167 // and RemoveDiscoverySession. This is used to queue incoming requests while 167 // and RemoveDiscoverySession. This is used to queue incoming requests while
168 // a call to BlueZ is pending. 168 // a call to BlueZ is pending.
169 typedef std::tuple<device::BluetoothDiscoveryFilter*, 169 typedef std::tuple<device::BluetoothDiscoveryFilter*,
170 base::Closure, 170 base::Closure,
171 DiscoverySessionErrorCallback> DiscoveryParamTuple; 171 DiscoverySessionErrorCallback>
172 DiscoveryParamTuple;
172 typedef std::queue<DiscoveryParamTuple> DiscoveryCallbackQueue; 173 typedef std::queue<DiscoveryParamTuple> DiscoveryCallbackQueue;
173 174
174 // Callback pair for the profile registration queue. 175 // Callback pair for the profile registration queue.
175 typedef std::pair<base::Closure, ErrorCompletionCallback> 176 typedef std::pair<base::Closure, ErrorCompletionCallback>
176 RegisterProfileCompletionPair; 177 RegisterProfileCompletionPair;
177 178
178 explicit BluetoothAdapterBlueZ(const InitCallback& init_callback); 179 explicit BluetoothAdapterBlueZ(const InitCallback& init_callback);
179 ~BluetoothAdapterBlueZ() override; 180 ~BluetoothAdapterBlueZ() override;
180 181
181 // Init will get asynchronouly called once we know if Object Manager is 182 // Init will get asynchronouly called once we know if Object Manager is
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 390
390 // Note: This should remain the last member so it'll be destroyed and 391 // Note: This should remain the last member so it'll be destroyed and
391 // invalidate its weak pointers before any other members are destroyed. 392 // invalidate its weak pointers before any other members are destroyed.
392 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; 393 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_;
393 394
394 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); 395 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ);
395 }; 396 };
396 397
397 } // namespace bluez 398 } // namespace bluez
398 399
399 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 400 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_socket_bluez_unittest.cc ('k') | device/bluetooth/bluez/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698