| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // StreamSocket implementation. | 63 // StreamSocket implementation. |
| 64 virtual int Connect(const CompletionCallback& callback) OVERRIDE; | 64 virtual int Connect(const CompletionCallback& callback) OVERRIDE; |
| 65 virtual void Disconnect() OVERRIDE; | 65 virtual void Disconnect() OVERRIDE; |
| 66 virtual bool IsConnected() const OVERRIDE; | 66 virtual bool IsConnected() const OVERRIDE; |
| 67 virtual bool IsConnectedAndIdle() const OVERRIDE; | 67 virtual bool IsConnectedAndIdle() const OVERRIDE; |
| 68 virtual const BoundNetLog& NetLog() const OVERRIDE; | 68 virtual const BoundNetLog& NetLog() const OVERRIDE; |
| 69 virtual void SetSubresourceSpeculation() OVERRIDE; | 69 virtual void SetSubresourceSpeculation() OVERRIDE; |
| 70 virtual void SetOmniboxSpeculation() OVERRIDE; | 70 virtual void SetOmniboxSpeculation() OVERRIDE; |
| 71 virtual bool WasEverUsed() const OVERRIDE; | 71 virtual bool WasEverUsed() const OVERRIDE; |
| 72 virtual bool UsingTCPFastOpen() const OVERRIDE; | 72 virtual bool UsingTCPFastOpen() const OVERRIDE; |
| 73 virtual int64 NumBytesRead() const OVERRIDE; | |
| 74 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | |
| 75 virtual bool WasNpnNegotiated() const OVERRIDE; | 73 virtual bool WasNpnNegotiated() const OVERRIDE; |
| 76 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; | 74 virtual NextProto GetNegotiatedProtocol() const OVERRIDE; |
| 77 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; | 75 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
| 78 | 76 |
| 79 // Socket implementation. | 77 // Socket implementation. |
| 80 virtual int Read(IOBuffer* buf, | 78 virtual int Read(IOBuffer* buf, |
| 81 int buf_len, | 79 int buf_len, |
| 82 const CompletionCallback& callback) OVERRIDE; | 80 const CompletionCallback& callback) OVERRIDE; |
| 83 virtual int Write(IOBuffer* buf, | 81 virtual int Write(IOBuffer* buf, |
| 84 int buf_len, | 82 int buf_len, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 HttpRequestHeaders request_headers_; | 159 HttpRequestHeaders request_headers_; |
| 162 | 160 |
| 163 const BoundNetLog net_log_; | 161 const BoundNetLog net_log_; |
| 164 | 162 |
| 165 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); | 163 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); |
| 166 }; | 164 }; |
| 167 | 165 |
| 168 } // namespace net | 166 } // namespace net |
| 169 | 167 |
| 170 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 168 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |