Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(713)

Side by Side Diff: net/spdy/spdy_proxy_client_socket.h

Issue 1272283003: Add a new SpdyStream::Delegate method to handle trailers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add NOTREACHED Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_proxy_client_socket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_proxy_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698