Chromium Code Reviews| 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 double GetRTTInMs() const; | |
|
Mike Belshe
2011/06/09 16:08:52
I agree with Will - GetRTTInMs should return an in
Gagan
2011/06/09 19:49:26
changed to GetConnectTimeMicros()
| |
| 81 | 83 |
| 82 // Socket methods: | 84 // Socket methods: |
| 83 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 85 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 84 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 86 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 85 virtual bool SetReceiveBufferSize(int32 size); | 87 virtual bool SetReceiveBufferSize(int32 size); |
| 86 virtual bool SetSendBufferSize(int32 size); | 88 virtual bool SetSendBufferSize(int32 size); |
| 87 virtual int GetPeerAddress(AddressList* address) const; | 89 virtual int GetPeerAddress(AddressList* address) const; |
| 88 virtual int GetLocalAddress(IPEndPoint* address) const; | 90 virtual int GetLocalAddress(IPEndPoint* address) const; |
| 89 | 91 |
| 90 private: | 92 private: |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 160 HttpRequestHeaders request_headers_; | 162 HttpRequestHeaders request_headers_; |
| 161 | 163 |
| 162 const BoundNetLog net_log_; | 164 const BoundNetLog net_log_; |
| 163 | 165 |
| 164 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); | 166 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); |
| 165 }; | 167 }; |
| 166 | 168 |
| 167 } // namespace net | 169 } // namespace net |
| 168 | 170 |
| 169 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 171 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |