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_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 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 virtual int Write(IOBuffer* buf, | 85 virtual int Write(IOBuffer* buf, |
86 int buf_len, | 86 int buf_len, |
87 const CompletionCallback& callback) OVERRIDE; | 87 const CompletionCallback& callback) OVERRIDE; |
88 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 88 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; |
89 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 89 virtual bool SetSendBufferSize(int32 size) OVERRIDE; |
90 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; | 90 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
91 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 91 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
92 | 92 |
93 // SpdyStream::Delegate implementation. | 93 // SpdyStream::Delegate implementation. |
94 virtual void OnRequestHeadersSent() OVERRIDE; | 94 virtual void OnRequestHeadersSent() OVERRIDE; |
95 virtual int OnResponseHeadersReceived(const SpdyHeaderBlock& response, | 95 virtual int OnResponseHeadersUpdated( |
96 base::Time response_time, | 96 const SpdyHeaderBlock& response_headers) OVERRIDE; |
97 int status) OVERRIDE; | |
98 virtual int OnDataReceived(scoped_ptr<SpdyBuffer> buffer) OVERRIDE; | 97 virtual int OnDataReceived(scoped_ptr<SpdyBuffer> buffer) OVERRIDE; |
99 virtual void OnDataSent() OVERRIDE; | 98 virtual void OnDataSent() OVERRIDE; |
100 virtual void OnClose(int status) OVERRIDE; | 99 virtual void OnClose(int status) OVERRIDE; |
101 | 100 |
102 private: | 101 private: |
103 enum State { | 102 enum State { |
104 STATE_DISCONNECTED, | 103 STATE_DISCONNECTED, |
105 STATE_GENERATE_AUTH_TOKEN, | 104 STATE_GENERATE_AUTH_TOKEN, |
106 STATE_GENERATE_AUTH_TOKEN_COMPLETE, | 105 STATE_GENERATE_AUTH_TOKEN_COMPLETE, |
107 STATE_SEND_REQUEST, | 106 STATE_SEND_REQUEST, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_; | 163 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_; |
165 | 164 |
166 const BoundNetLog net_log_; | 165 const BoundNetLog net_log_; |
167 | 166 |
168 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 167 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
169 }; | 168 }; |
170 | 169 |
171 } // namespace net | 170 } // namespace net |
172 | 171 |
173 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 172 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
OLD | NEW |