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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_BLUEZ_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_BLUEZ_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_BLUEZ_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_BLUEZ_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 namespace dbus { | 23 namespace dbus { |
24 class FileDescriptor; | 24 class FileDescriptor; |
25 } // namespace dbus | 25 } // namespace dbus |
26 | 26 |
27 namespace bluez { | 27 namespace bluez { |
28 | 28 |
29 class BluetoothDeviceBlueZ; | 29 class BluetoothDeviceBlueZ; |
30 class BluetoothAdapterBlueZ; | 30 class BluetoothAdapterBlueZ; |
31 class BluetoothAdapterProfileBlueZ; | 31 class BluetoothAdapterProfileBlueZ; |
32 | 32 |
33 // The BluetoothSocketBlueZ class implements BluetoothSocket for the | 33 // The BluetoothSocketBlueZ class implements BluetoothSocket for platforms that |
34 // Chrome OS platform. | 34 // use BlueZ. |
35 // | 35 // |
36 // This class is not thread-safe, but is only called from the UI thread. | 36 // This class is not thread-safe, but is only called from the UI thread. |
37 class DEVICE_BLUETOOTH_EXPORT BluetoothSocketBlueZ | 37 class DEVICE_BLUETOOTH_EXPORT BluetoothSocketBlueZ |
38 : public device::BluetoothSocketNet, | 38 : public device::BluetoothSocketNet, |
39 public device::BluetoothAdapter::Observer, | 39 public device::BluetoothAdapter::Observer, |
40 public bluez::BluetoothProfileServiceProvider::Delegate { | 40 public bluez::BluetoothProfileServiceProvider::Delegate { |
41 public: | 41 public: |
42 enum SecurityLevel { SECURITY_LEVEL_LOW, SECURITY_LEVEL_MEDIUM }; | 42 enum SecurityLevel { SECURITY_LEVEL_LOW, SECURITY_LEVEL_MEDIUM }; |
43 | 43 |
44 static scoped_refptr<BluetoothSocketBlueZ> CreateBluetoothSocket( | 44 static scoped_refptr<BluetoothSocketBlueZ> CreateBluetoothSocket( |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 bool cancelled; | 192 bool cancelled; |
193 }; | 193 }; |
194 std::queue<linked_ptr<ConnectionRequest>> connection_request_queue_; | 194 std::queue<linked_ptr<ConnectionRequest>> connection_request_queue_; |
195 | 195 |
196 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketBlueZ); | 196 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketBlueZ); |
197 }; | 197 }; |
198 | 198 |
199 } // namespace bluez | 199 } // namespace bluez |
200 | 200 |
201 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_BLUEZ_H_ | 201 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_BLUEZ_H_ |
OLD | NEW |