| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 return using_spdy_; | 67 return using_spdy_; |
| 68 } | 68 } |
| 69 | 69 |
| 70 // ClientSocket methods: | 70 // ClientSocket methods: |
| 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; |
| 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 virtual bool UsingTCPFastOpen() const; |
| 82 | 82 |
| 83 // Socket methods: | 83 // Socket methods: |
| 84 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 84 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 85 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 85 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 86 | 86 |
| 87 virtual bool SetReceiveBufferSize(int32 size); | 87 virtual bool SetReceiveBufferSize(int32 size); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 HttpRequestHeaders request_headers_; | 160 HttpRequestHeaders request_headers_; |
| 161 | 161 |
| 162 const BoundNetLog net_log_; | 162 const BoundNetLog net_log_; |
| 163 | 163 |
| 164 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); | 164 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace net | 167 } // namespace net |
| 168 | 168 |
| 169 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 169 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |