| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 void HandleIncoming(scoped_refptr<AdbMessage> message); | 32 void HandleIncoming(scoped_refptr<AdbMessage> message); |
| 33 | 33 |
| 34 void Terminated(); | 34 void Terminated(); |
| 35 | 35 |
| 36 // net::StreamSocket implementation. | 36 // net::StreamSocket implementation. |
| 37 virtual int Read(net::IOBuffer* buf, int buf_len, | 37 virtual int Read(net::IOBuffer* buf, int buf_len, |
| 38 const net::CompletionCallback& callback) OVERRIDE; | 38 const net::CompletionCallback& callback) OVERRIDE; |
| 39 virtual int Write(net::IOBuffer* buf, int buf_len, | 39 virtual int Write(net::IOBuffer* buf, int buf_len, |
| 40 const net::CompletionCallback& callback) OVERRIDE; | 40 const net::CompletionCallback& callback) OVERRIDE; |
| 41 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 41 virtual int SetReceiveBufferSize(int32 size) OVERRIDE; |
| 42 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 42 virtual int SetSendBufferSize(int32 size) OVERRIDE; |
| 43 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE; | 43 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE; |
| 44 virtual void Disconnect() OVERRIDE; | 44 virtual void Disconnect() OVERRIDE; |
| 45 virtual bool IsConnected() const OVERRIDE; | 45 virtual bool IsConnected() const OVERRIDE; |
| 46 virtual bool IsConnectedAndIdle() const OVERRIDE; | 46 virtual bool IsConnectedAndIdle() const OVERRIDE; |
| 47 virtual int GetPeerAddress(net::IPEndPoint* address) const OVERRIDE; | 47 virtual int GetPeerAddress(net::IPEndPoint* address) const OVERRIDE; |
| 48 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; | 48 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; |
| 49 virtual const net::BoundNetLog& NetLog() const OVERRIDE; | 49 virtual const net::BoundNetLog& NetLog() const OVERRIDE; |
| 50 virtual void SetSubresourceSpeculation() OVERRIDE; | 50 virtual void SetSubresourceSpeculation() OVERRIDE; |
| 51 virtual void SetOmniboxSpeculation() OVERRIDE; | 51 virtual void SetOmniboxSpeculation() OVERRIDE; |
| 52 virtual bool WasEverUsed() const OVERRIDE; | 52 virtual bool WasEverUsed() const OVERRIDE; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 81 bool is_closed_; | 81 bool is_closed_; |
| 82 std::string read_buffer_; | 82 std::string read_buffer_; |
| 83 net::CompletionCallback connect_callback_; | 83 net::CompletionCallback connect_callback_; |
| 84 std::deque<IORequest> read_requests_; | 84 std::deque<IORequest> read_requests_; |
| 85 std::deque<IORequest> write_requests_; | 85 std::deque<IORequest> write_requests_; |
| 86 | 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(AndroidUsbSocket); | 87 DISALLOW_COPY_AND_ASSIGN(AndroidUsbSocket); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 #endif // CHROME_BROWSER_DEVTOOLS_ADB_ANDROID_USB_SOCKET_H_ | 90 #endif // CHROME_BROWSER_DEVTOOLS_ADB_ANDROID_USB_SOCKET_H_ |
| OLD | NEW |