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_CHROMEOS_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 } // namespace dbus | 24 } // namespace dbus |
25 | 25 |
26 namespace chromeos { | 26 namespace chromeos { |
27 | 27 |
28 class BluetoothDeviceChromeOS; | 28 class BluetoothDeviceChromeOS; |
29 class BluetoothAdapterChromeOS; | 29 class BluetoothAdapterChromeOS; |
30 class BluetoothAdapterProfileChromeOS; | 30 class BluetoothAdapterProfileChromeOS; |
31 | 31 |
32 // The BluetoothSocketChromeOS class implements BluetoothSocket for the | 32 // The BluetoothSocketChromeOS class implements BluetoothSocket for the |
33 // Chrome OS platform. | 33 // Chrome OS platform. |
| 34 // |
| 35 // This class is not thread-safe, but is only called from the UI thread. |
34 class CHROMEOS_EXPORT BluetoothSocketChromeOS | 36 class CHROMEOS_EXPORT BluetoothSocketChromeOS |
35 : public device::BluetoothSocketNet, | 37 : public device::BluetoothSocketNet, |
36 public device::BluetoothAdapter::Observer, | 38 public device::BluetoothAdapter::Observer, |
37 public BluetoothProfileServiceProvider::Delegate { | 39 public BluetoothProfileServiceProvider::Delegate { |
38 public: | 40 public: |
39 enum SecurityLevel { | 41 enum SecurityLevel { |
40 SECURITY_LEVEL_LOW, | 42 SECURITY_LEVEL_LOW, |
41 SECURITY_LEVEL_MEDIUM | 43 SECURITY_LEVEL_MEDIUM |
42 }; | 44 }; |
43 | 45 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 bool cancelled; | 194 bool cancelled; |
193 }; | 195 }; |
194 std::queue<linked_ptr<ConnectionRequest> > connection_request_queue_; | 196 std::queue<linked_ptr<ConnectionRequest> > connection_request_queue_; |
195 | 197 |
196 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketChromeOS); | 198 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketChromeOS); |
197 }; | 199 }; |
198 | 200 |
199 } // namespace chromeos | 201 } // namespace chromeos |
200 | 202 |
201 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_ | 203 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_CHROMEOS_H_ |
OLD | NEW |