| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // StreamSocket methods: | 71 // StreamSocket methods: |
| 72 virtual int Connect(CompletionCallback* callback); | 72 virtual int Connect(CompletionCallback* callback); |
| 73 virtual void Disconnect(); | 73 virtual void Disconnect(); |
| 74 virtual bool IsConnected() const; | 74 virtual bool IsConnected() const; |
| 75 virtual bool IsConnectedAndIdle() const; | 75 virtual bool IsConnectedAndIdle() const; |
| 76 virtual const BoundNetLog& NetLog() const; | 76 virtual const BoundNetLog& NetLog() const; |
| 77 virtual void SetSubresourceSpeculation(); | 77 virtual void SetSubresourceSpeculation(); |
| 78 virtual void SetOmniboxSpeculation(); | 78 virtual void SetOmniboxSpeculation(); |
| 79 virtual bool WasEverUsed() const; | 79 virtual bool WasEverUsed() const; |
| 80 virtual bool UsingTCPFastOpen() const; | 80 virtual bool UsingTCPFastOpen() const; |
| 81 virtual int64 NumBytesRead() const; | |
| 82 virtual base::TimeDelta GetConnectTimeMicros() const; | |
| 83 | 81 |
| 84 // Socket methods: | 82 // Socket methods: |
| 85 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 83 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 86 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 84 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 87 virtual bool SetReceiveBufferSize(int32 size); | 85 virtual bool SetReceiveBufferSize(int32 size); |
| 88 virtual bool SetSendBufferSize(int32 size); | 86 virtual bool SetSendBufferSize(int32 size); |
| 89 virtual int GetPeerAddress(AddressList* address) const; | 87 virtual int GetPeerAddress(AddressList* address) const; |
| 90 virtual int GetLocalAddress(IPEndPoint* address) const; | 88 virtual int GetLocalAddress(IPEndPoint* address) const; |
| 91 | 89 |
| 92 private: | 90 private: |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 HttpRequestHeaders request_headers_; | 160 HttpRequestHeaders request_headers_; |
| 163 | 161 |
| 164 const BoundNetLog net_log_; | 162 const BoundNetLog net_log_; |
| 165 | 163 |
| 166 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); | 164 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); |
| 167 }; | 165 }; |
| 168 | 166 |
| 169 } // namespace net | 167 } // namespace net |
| 170 | 168 |
| 171 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 169 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |