| 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_SOCKET_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_SOCKET_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_SOCKET_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_SOCKET_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> |
| 11 |
| 10 #include "base/macros.h" | 12 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 13 #include "base/threading/non_thread_safe.h" | 15 #include "base/threading/non_thread_safe.h" |
| 14 #include "chrome/browser/devtools/device/usb/android_usb_device.h" | 16 #include "chrome/browser/devtools/device/usb/android_usb_device.h" |
| 15 #include "net/base/ip_endpoint.h" | 17 #include "net/base/ip_endpoint.h" |
| 18 #include "net/log/net_log_with_source.h" |
| 16 #include "net/socket/stream_socket.h" | 19 #include "net/socket/stream_socket.h" |
| 17 | 20 |
| 18 namespace base { | 21 namespace base { |
| 19 class MessageLoop; | 22 class MessageLoop; |
| 20 } | 23 } |
| 21 | 24 |
| 22 class AndroidUsbSocket : public net::StreamSocket, | 25 class AndroidUsbSocket : public net::StreamSocket, |
| 23 public base::NonThreadSafe { | 26 public base::NonThreadSafe { |
| 24 public: | 27 public: |
| 25 AndroidUsbSocket(scoped_refptr<AndroidUsbDevice> device, | 28 AndroidUsbSocket(scoped_refptr<AndroidUsbDevice> device, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 net::CompletionCallback connect_callback_; | 80 net::CompletionCallback connect_callback_; |
| 78 net::CompletionCallback read_callback_; | 81 net::CompletionCallback read_callback_; |
| 79 net::CompletionCallback write_callback_; | 82 net::CompletionCallback write_callback_; |
| 80 base::Closure delete_callback_; | 83 base::Closure delete_callback_; |
| 81 base::WeakPtrFactory<AndroidUsbSocket> weak_factory_; | 84 base::WeakPtrFactory<AndroidUsbSocket> weak_factory_; |
| 82 | 85 |
| 83 DISALLOW_COPY_AND_ASSIGN(AndroidUsbSocket); | 86 DISALLOW_COPY_AND_ASSIGN(AndroidUsbSocket); |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_SOCKET_H_ | 89 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_SOCKET_H_ |
| OLD | NEW |