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 CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <vector> | 10 #include <vector> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 bool is_connected_; | 147 bool is_connected_; |
148 bool signature_sent_; | 148 bool signature_sent_; |
149 | 149 |
150 // Created sockets info | 150 // Created sockets info |
151 uint32 last_socket_id_; | 151 uint32 last_socket_id_; |
152 typedef std::map<uint32, AndroidUsbSocket*> AndroidUsbSockets; | 152 typedef std::map<uint32, AndroidUsbSocket*> AndroidUsbSockets; |
153 AndroidUsbSockets sockets_; | 153 AndroidUsbSockets sockets_; |
154 | 154 |
155 // Outgoing bulk queue | 155 // Outgoing bulk queue |
156 typedef std::pair<scoped_refptr<net::IOBuffer>, size_t> BulkMessage; | 156 typedef scoped_refptr<net::IOBufferWithSize> BulkMessage; |
157 std::queue<BulkMessage> outgoing_queue_; | 157 std::queue<BulkMessage> outgoing_queue_; |
158 | 158 |
159 // Outgoing messages pending connect | 159 // Outgoing messages pending connect |
160 typedef std::vector<scoped_refptr<AdbMessage> > PendingMessages; | 160 typedef std::vector<scoped_refptr<AdbMessage> > PendingMessages; |
161 PendingMessages pending_messages_; | 161 PendingMessages pending_messages_; |
162 | 162 |
163 base::WeakPtrFactory<AndroidUsbDevice> weak_factory_; | 163 base::WeakPtrFactory<AndroidUsbDevice> weak_factory_; |
164 | 164 |
165 DISALLOW_COPY_AND_ASSIGN(AndroidUsbDevice); | 165 DISALLOW_COPY_AND_ASSIGN(AndroidUsbDevice); |
166 }; | 166 }; |
167 | 167 |
168 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_ | 168 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_ |
OLD | NEW |