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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <list> | 10 #include <list> |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 const CompletionCallback& callback) OVERRIDE; | 86 const CompletionCallback& callback) OVERRIDE; |
87 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 87 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; |
88 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 88 virtual bool SetSendBufferSize(int32 size) OVERRIDE; |
89 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; | 89 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
90 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 90 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
91 | 91 |
92 // SpdyStream::Delegate implementation. | 92 // SpdyStream::Delegate implementation. |
93 virtual bool OnSendHeadersComplete(int status) OVERRIDE; | 93 virtual bool OnSendHeadersComplete(int status) OVERRIDE; |
94 virtual int OnSendBody() OVERRIDE; | 94 virtual int OnSendBody() OVERRIDE; |
95 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; | 95 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; |
| 96 virtual int OnSendChunkedBody() OVERRIDE; |
| 97 virtual int OnSendChunkedBodyComplete(int status, bool* eof) OVERRIDE; |
96 virtual int OnResponseReceived(const SpdyHeaderBlock& response, | 98 virtual int OnResponseReceived(const SpdyHeaderBlock& response, |
97 base::Time response_time, | 99 base::Time response_time, |
98 int status) OVERRIDE; | 100 int status) OVERRIDE; |
99 virtual void OnDataReceived(const char* data, int length) OVERRIDE; | 101 virtual void OnDataReceived(const char* data, int length) OVERRIDE; |
100 virtual void OnDataSent(int length) OVERRIDE; | 102 virtual void OnDataSent(int length) OVERRIDE; |
101 virtual void OnClose(int status) OVERRIDE; | 103 virtual void OnClose(int status) OVERRIDE; |
102 virtual void set_chunk_callback(ChunkCallback* /*callback*/) OVERRIDE; | 104 virtual void set_chunk_callback(ChunkCallback* /*callback*/) OVERRIDE; |
| 105 virtual bool IsRequestBodyChunked() OVERRIDE; |
103 | 106 |
104 private: | 107 private: |
105 enum State { | 108 enum State { |
106 STATE_DISCONNECTED, | 109 STATE_DISCONNECTED, |
107 STATE_GENERATE_AUTH_TOKEN, | 110 STATE_GENERATE_AUTH_TOKEN, |
108 STATE_GENERATE_AUTH_TOKEN_COMPLETE, | 111 STATE_GENERATE_AUTH_TOKEN_COMPLETE, |
109 STATE_SEND_REQUEST, | 112 STATE_SEND_REQUEST, |
110 STATE_SEND_REQUEST_COMPLETE, | 113 STATE_SEND_REQUEST_COMPLETE, |
111 STATE_READ_REPLY_COMPLETE, | 114 STATE_READ_REPLY_COMPLETE, |
112 STATE_OPEN, | 115 STATE_OPEN, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_; | 168 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_; |
166 | 169 |
167 const BoundNetLog net_log_; | 170 const BoundNetLog net_log_; |
168 | 171 |
169 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 172 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
170 }; | 173 }; |
171 | 174 |
172 } // namespace net | 175 } // namespace net |
173 | 176 |
174 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 177 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
OLD | NEW |