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_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 5 #ifndef NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 6 #define NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <list> | 10 #include <list> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // StreamSocket methods: | 70 // StreamSocket methods: |
71 virtual int Connect(CompletionCallback* callback); | 71 virtual int Connect(CompletionCallback* callback); |
72 virtual void Disconnect(); | 72 virtual void Disconnect(); |
73 virtual bool IsConnected() const; | 73 virtual bool IsConnected() const; |
74 virtual bool IsConnectedAndIdle() const; | 74 virtual bool IsConnectedAndIdle() const; |
75 virtual const BoundNetLog& NetLog() const; | 75 virtual const BoundNetLog& NetLog() const; |
76 virtual void SetSubresourceSpeculation(); | 76 virtual void SetSubresourceSpeculation(); |
77 virtual void SetOmniboxSpeculation(); | 77 virtual void SetOmniboxSpeculation(); |
78 virtual bool WasEverUsed() const; | 78 virtual bool WasEverUsed() const; |
79 virtual bool UsingTCPFastOpen() const; | 79 virtual bool UsingTCPFastOpen() const; |
80 virtual int64 NumBytesRead() const; | |
81 virtual base::TimeDelta GetConnectTimeMicros() const; | |
82 | 80 |
83 // Socket methods: | 81 // Socket methods: |
84 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 82 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
85 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 83 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
86 virtual bool SetReceiveBufferSize(int32 size); | 84 virtual bool SetReceiveBufferSize(int32 size); |
87 virtual bool SetSendBufferSize(int32 size); | 85 virtual bool SetSendBufferSize(int32 size); |
88 virtual int GetPeerAddress(AddressList* address) const; | 86 virtual int GetPeerAddress(AddressList* address) const; |
89 virtual int GetLocalAddress(IPEndPoint* address) const; | 87 virtual int GetLocalAddress(IPEndPoint* address) const; |
90 | 88 |
91 // SpdyStream::Delegate methods: | 89 // SpdyStream::Delegate methods: |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 scoped_ptr<SpdyHttpStream> response_stream_; | 163 scoped_ptr<SpdyHttpStream> response_stream_; |
166 | 164 |
167 const BoundNetLog net_log_; | 165 const BoundNetLog net_log_; |
168 | 166 |
169 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 167 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
170 }; | 168 }; |
171 | 169 |
172 } // namespace net | 170 } // namespace net |
173 | 171 |
174 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 172 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
OLD | NEW |