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