| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 71 |
| 72 // Authenticates to the Http Proxy and then passes data freely. | 72 // Authenticates to the Http Proxy and then passes data freely. |
| 73 virtual int Connect(CompletionCallback* callback); | 73 virtual int Connect(CompletionCallback* callback); |
| 74 virtual void Disconnect(); | 74 virtual void Disconnect(); |
| 75 virtual bool IsConnected() const; | 75 virtual bool IsConnected() const; |
| 76 virtual bool IsConnectedAndIdle() const; | 76 virtual bool IsConnectedAndIdle() const; |
| 77 virtual const BoundNetLog& NetLog() const { return net_log_; } | 77 virtual const BoundNetLog& NetLog() const { return net_log_; } |
| 78 virtual void SetSubresourceSpeculation(); | 78 virtual void SetSubresourceSpeculation(); |
| 79 virtual void SetOmniboxSpeculation(); | 79 virtual void SetOmniboxSpeculation(); |
| 80 virtual bool WasEverUsed() const; | 80 virtual bool WasEverUsed() const; |
| 81 virtual bool UsingTCPFastOpen() const; |
| 81 | 82 |
| 82 // Socket methods: | 83 // Socket methods: |
| 83 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 84 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 84 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 85 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 85 | 86 |
| 86 virtual bool SetReceiveBufferSize(int32 size); | 87 virtual bool SetReceiveBufferSize(int32 size); |
| 87 virtual bool SetSendBufferSize(int32 size); | 88 virtual bool SetSendBufferSize(int32 size); |
| 88 | 89 |
| 89 virtual int GetPeerAddress(AddressList* address) const; | 90 virtual int GetPeerAddress(AddressList* address) const; |
| 90 | 91 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 std::string request_headers_; | 159 std::string request_headers_; |
| 159 | 160 |
| 160 const BoundNetLog net_log_; | 161 const BoundNetLog net_log_; |
| 161 | 162 |
| 162 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); | 163 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); |
| 163 }; | 164 }; |
| 164 | 165 |
| 165 } // namespace net | 166 } // namespace net |
| 166 | 167 |
| 167 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 168 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |