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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 int SetSendBufferSize(int32 size) override; | 88 int SetSendBufferSize(int32 size) override; |
89 int GetPeerAddress(IPEndPoint* address) const override; | 89 int GetPeerAddress(IPEndPoint* address) const override; |
90 int GetLocalAddress(IPEndPoint* address) const override; | 90 int GetLocalAddress(IPEndPoint* address) const override; |
91 | 91 |
92 // SpdyStream::Delegate implementation. | 92 // SpdyStream::Delegate implementation. |
93 void OnRequestHeadersSent() override; | 93 void OnRequestHeadersSent() override; |
94 SpdyResponseHeadersStatus OnResponseHeadersUpdated( | 94 SpdyResponseHeadersStatus OnResponseHeadersUpdated( |
95 const SpdyHeaderBlock& response_headers) override; | 95 const SpdyHeaderBlock& response_headers) override; |
96 void OnDataReceived(scoped_ptr<SpdyBuffer> buffer) override; | 96 void OnDataReceived(scoped_ptr<SpdyBuffer> buffer) override; |
97 void OnDataSent() override; | 97 void OnDataSent() override; |
| 98 void OnTrailers(const SpdyHeaderBlock& trailers) override; |
98 void OnClose(int status) override; | 99 void OnClose(int status) override; |
99 | 100 |
100 private: | 101 private: |
101 enum State { | 102 enum State { |
102 STATE_DISCONNECTED, | 103 STATE_DISCONNECTED, |
103 STATE_GENERATE_AUTH_TOKEN, | 104 STATE_GENERATE_AUTH_TOKEN, |
104 STATE_GENERATE_AUTH_TOKEN_COMPLETE, | 105 STATE_GENERATE_AUTH_TOKEN_COMPLETE, |
105 STATE_SEND_REQUEST, | 106 STATE_SEND_REQUEST, |
106 STATE_SEND_REQUEST_COMPLETE, | 107 STATE_SEND_REQUEST_COMPLETE, |
107 STATE_READ_REPLY_COMPLETE, | 108 STATE_READ_REPLY_COMPLETE, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // Only used for posting write callbacks. Weak pointers created by this | 176 // Only used for posting write callbacks. Weak pointers created by this |
176 // factory are invalidated in Disconnect(). | 177 // factory are invalidated in Disconnect(). |
177 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; | 178 base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; |
178 | 179 |
179 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 180 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
180 }; | 181 }; |
181 | 182 |
182 } // namespace net | 183 } // namespace net |
183 | 184 |
184 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 185 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
OLD | NEW |