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

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

Issue 10828129: SPDY: WriteHeaders should not invoke OnDataSent callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_http_stream.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 <string> 8 #include <string>
9 #include <list> 9 #include <list>
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool OnSendHeadersComplete(int status) OVERRIDE; 94 virtual bool OnSendHeadersComplete(int status) OVERRIDE;
95 virtual int OnSendBody() OVERRIDE; 95 virtual int OnSendBody() OVERRIDE;
96 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; 96 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE;
97 virtual int OnResponseReceived(const SpdyHeaderBlock& response, 97 virtual int OnResponseReceived(const SpdyHeaderBlock& response,
98 base::Time response_time, 98 base::Time response_time,
99 int status) OVERRIDE; 99 int status) OVERRIDE;
100 virtual void OnHeadersSent() OVERRIDE;
100 virtual int OnDataReceived(const char* data, int length) OVERRIDE; 101 virtual int OnDataReceived(const char* data, int length) OVERRIDE;
101 virtual void OnDataSent(int length) OVERRIDE; 102 virtual void OnDataSent(int length) OVERRIDE;
102 virtual void OnClose(int status) OVERRIDE; 103 virtual void OnClose(int status) OVERRIDE;
103 104
104 private: 105 private:
105 enum State { 106 enum State {
106 STATE_DISCONNECTED, 107 STATE_DISCONNECTED,
107 STATE_GENERATE_AUTH_TOKEN, 108 STATE_GENERATE_AUTH_TOKEN,
108 STATE_GENERATE_AUTH_TOKEN_COMPLETE, 109 STATE_GENERATE_AUTH_TOKEN_COMPLETE,
109 STATE_SEND_REQUEST, 110 STATE_SEND_REQUEST,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_; 168 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_;
168 169
169 const BoundNetLog net_log_; 170 const BoundNetLog net_log_;
170 171
171 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); 172 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket);
172 }; 173 };
173 174
174 } // namespace net 175 } // namespace net
175 176
176 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 177 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_http_stream.cc ('k') | net/spdy/spdy_proxy_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698