| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <queue> | 12 #include <queue> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
| 18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
| 19 #include "device/usb/usb_device_handle.h" | 19 #include "device/usb/usb_device_handle.h" |
| 20 | 20 |
| 21 namespace base { | 21 namespace base { |
| 22 class SingleThreadTaskRunner; | 22 class SingleThreadTaskRunner; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace crypto { | 25 namespace crypto { |
| 26 class RSAPrivateKey; | 26 class RSAPrivateKey; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace net { | 29 namespace net { |
| 30 class IOBuffer; |
| 31 class IOBufferWithSize; |
| 30 class StreamSocket; | 32 class StreamSocket; |
| 31 } | 33 } |
| 32 | 34 |
| 33 class AndroidUsbSocket; | 35 class AndroidUsbSocket; |
| 34 | 36 |
| 35 class AdbMessage { | 37 class AdbMessage { |
| 36 public: | 38 public: |
| 37 enum Command { | 39 enum Command { |
| 38 kCommandSYNC = 0x434e5953, | 40 kCommandSYNC = 0x434e5953, |
| 39 kCommandCNXN = 0x4e584e43, | 41 kCommandCNXN = 0x4e584e43, |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // Outgoing messages pending connect | 162 // Outgoing messages pending connect |
| 161 typedef ScopedVector<AdbMessage> PendingMessages; | 163 typedef ScopedVector<AdbMessage> PendingMessages; |
| 162 PendingMessages pending_messages_; | 164 PendingMessages pending_messages_; |
| 163 | 165 |
| 164 base::WeakPtrFactory<AndroidUsbDevice> weak_factory_; | 166 base::WeakPtrFactory<AndroidUsbDevice> weak_factory_; |
| 165 | 167 |
| 166 DISALLOW_COPY_AND_ASSIGN(AndroidUsbDevice); | 168 DISALLOW_COPY_AND_ASSIGN(AndroidUsbDevice); |
| 167 }; | 169 }; |
| 168 | 170 |
| 169 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_ | 171 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_ |
| OLD | NEW |