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_MAC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_MAC_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_MAC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_MAC_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #import <IOBluetooth/IOBluetooth.h> | 11 #import <IOBluetooth/IOBluetooth.h> |
12 #import <IOKit/IOReturn.h> | 12 #import <IOKit/IOReturn.h> |
| 13 #include <stddef.h> |
13 | 14 |
14 #include "base/mac/scoped_nsobject.h" | 15 #include "base/mac/scoped_nsobject.h" |
| 16 #include "base/macros.h" |
15 #include "base/memory/linked_ptr.h" | 17 #include "base/memory/linked_ptr.h" |
16 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
17 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
18 #include "base/threading/thread_checker.h" | 20 #include "base/threading/thread_checker.h" |
19 #include "device/bluetooth/bluetooth_adapter.h" | 21 #include "device/bluetooth/bluetooth_adapter.h" |
20 #include "device/bluetooth/bluetooth_socket.h" | 22 #include "device/bluetooth/bluetooth_socket.h" |
21 #include "device/bluetooth/bluetooth_uuid.h" | 23 #include "device/bluetooth/bluetooth_uuid.h" |
22 | 24 |
23 @class BluetoothRfcommConnectionListener; | 25 @class BluetoothRfcommConnectionListener; |
24 @class BluetoothL2capConnectionListener; | 26 @class BluetoothL2capConnectionListener; |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 198 |
197 // Queue of incoming connections. | 199 // Queue of incoming connections. |
198 std::queue<linked_ptr<BluetoothChannelMac>> accept_queue_; | 200 std::queue<linked_ptr<BluetoothChannelMac>> accept_queue_; |
199 | 201 |
200 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketMac); | 202 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketMac); |
201 }; | 203 }; |
202 | 204 |
203 } // namespace device | 205 } // namespace device |
204 | 206 |
205 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_MAC_H_ | 207 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_MAC_H_ |
OLD | NEW |