| 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 "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 int Connect(const net::CompletionCallback& callback) override; | 44 int Connect(const net::CompletionCallback& callback) override; |
| 45 void Disconnect() override; | 45 void Disconnect() override; |
| 46 bool IsConnected() const override; | 46 bool IsConnected() const override; |
| 47 bool IsConnectedAndIdle() const override; | 47 bool IsConnectedAndIdle() const override; |
| 48 int GetPeerAddress(net::IPEndPoint* address) const override; | 48 int GetPeerAddress(net::IPEndPoint* address) const override; |
| 49 int GetLocalAddress(net::IPEndPoint* address) const override; | 49 int GetLocalAddress(net::IPEndPoint* address) const override; |
| 50 const net::BoundNetLog& NetLog() const override; | 50 const net::BoundNetLog& NetLog() const override; |
| 51 void SetSubresourceSpeculation() override; | 51 void SetSubresourceSpeculation() override; |
| 52 void SetOmniboxSpeculation() override; | 52 void SetOmniboxSpeculation() override; |
| 53 bool WasEverUsed() const override; | 53 bool WasEverUsed() const override; |
| 54 bool UsingTCPFastOpen() const override; | |
| 55 bool WasNpnNegotiated() const override; | 54 bool WasNpnNegotiated() const override; |
| 56 net::NextProto GetNegotiatedProtocol() const override; | 55 net::NextProto GetNegotiatedProtocol() const override; |
| 57 bool GetSSLInfo(net::SSLInfo* ssl_info) override; | 56 bool GetSSLInfo(net::SSLInfo* ssl_info) override; |
| 58 void GetConnectionAttempts(net::ConnectionAttempts* out) const override; | 57 void GetConnectionAttempts(net::ConnectionAttempts* out) const override; |
| 59 void ClearConnectionAttempts() override {} | 58 void ClearConnectionAttempts() override {} |
| 60 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override { | 59 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override { |
| 61 } | 60 } |
| 62 int64_t GetTotalReceivedBytes() const override; | 61 int64_t GetTotalReceivedBytes() const override; |
| 63 | 62 |
| 64 private: | 63 private: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 78 net::CompletionCallback connect_callback_; | 77 net::CompletionCallback connect_callback_; |
| 79 net::CompletionCallback read_callback_; | 78 net::CompletionCallback read_callback_; |
| 80 net::CompletionCallback write_callback_; | 79 net::CompletionCallback write_callback_; |
| 81 base::Closure delete_callback_; | 80 base::Closure delete_callback_; |
| 82 base::WeakPtrFactory<AndroidUsbSocket> weak_factory_; | 81 base::WeakPtrFactory<AndroidUsbSocket> weak_factory_; |
| 83 | 82 |
| 84 DISALLOW_COPY_AND_ASSIGN(AndroidUsbSocket); | 83 DISALLOW_COPY_AND_ASSIGN(AndroidUsbSocket); |
| 85 }; | 84 }; |
| 86 | 85 |
| 87 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_SOCKET_H_ | 86 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_SOCKET_H_ |
| OLD | NEW |