| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_NET_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_NET_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_NET_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_NET_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/sequenced_task_runner.h" | 15 #include "base/sequenced_task_runner.h" |
| 16 #include "device/bluetooth/bluetooth_socket.h" | 16 #include "device/bluetooth/bluetooth_socket.h" |
| 17 #include "device/bluetooth/bluetooth_socket_thread.h" | 17 #include "device/bluetooth/bluetooth_socket_thread.h" |
| 18 #include "net/socket/tcp_socket.h" | 18 #include "net/socket/tcp_socket.h" |
| 19 | 19 |
| 20 namespace net { | 20 namespace net { |
| 21 class IOBuffer; | 21 class IOBuffer; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 scoped_ptr<net::TCPSocket> tcp_socket_; | 113 scoped_ptr<net::TCPSocket> tcp_socket_; |
| 114 scoped_refptr<net::IOBufferWithSize> read_buffer_; | 114 scoped_refptr<net::IOBufferWithSize> read_buffer_; |
| 115 std::queue<linked_ptr<WriteRequest> > write_queue_; | 115 std::queue<linked_ptr<WriteRequest> > write_queue_; |
| 116 | 116 |
| 117 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketNet); | 117 DISALLOW_COPY_AND_ASSIGN(BluetoothSocketNet); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } // namespace device | 120 } // namespace device |
| 121 | 121 |
| 122 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_NET_H_ | 122 #endif // DEVICE_BLUETOOTH_BLUETOOTH_SOCKET_NET_H_ |
| OLD | NEW |