| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_DEVTOOLS_ADB_ANDROID_USB_SOCKET_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_ADB_ANDROID_USB_SOCKET_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_ADB_ANDROID_USB_SOCKET_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_ADB_ANDROID_USB_SOCKET_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 void RespondToReaders(bool diconnect); | 71 void RespondToReaders(bool diconnect); |
| 72 void RespondToWriters(); | 72 void RespondToWriters(); |
| 73 | 73 |
| 74 scoped_refptr<AndroidUsbDevice> device_; | 74 scoped_refptr<AndroidUsbDevice> device_; |
| 75 std::string command_; | 75 std::string command_; |
| 76 base::Callback<void(uint32)> delete_callback_; | 76 base::Callback<void(uint32)> delete_callback_; |
| 77 uint32 local_id_; | 77 uint32 local_id_; |
| 78 uint32 remote_id_; | 78 uint32 remote_id_; |
| 79 net::BoundNetLog net_log_; | 79 net::BoundNetLog net_log_; |
| 80 bool is_connected_; | 80 bool is_connected_; |
| 81 bool is_closed_; | |
| 82 std::string read_buffer_; | 81 std::string read_buffer_; |
| 83 net::CompletionCallback connect_callback_; | 82 net::CompletionCallback connect_callback_; |
| 84 std::deque<IORequest> read_requests_; | 83 std::deque<IORequest> read_requests_; |
| 85 std::deque<IORequest> write_requests_; | 84 std::deque<IORequest> write_requests_; |
| 86 | 85 |
| 87 DISALLOW_COPY_AND_ASSIGN(AndroidUsbSocket); | 86 DISALLOW_COPY_AND_ASSIGN(AndroidUsbSocket); |
| 88 }; | 87 }; |
| 89 | 88 |
| 90 #endif // CHROME_BROWSER_DEVTOOLS_ADB_ANDROID_USB_SOCKET_H_ | 89 #endif // CHROME_BROWSER_DEVTOOLS_ADB_ANDROID_USB_SOCKET_H_ |
| OLD | NEW |