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

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

Issue 3417010: Integrate the SpdyProxyClientSocket into the HttpStreamRequest... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebasing again Created 10 years, 2 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 virtual void OnDataReceived(const char* data, int length); 107 virtual void OnDataReceived(const char* data, int length);
108 108
109 // Called when data is sent. 109 // Called when data is sent.
110 virtual void OnDataSent(int length); 110 virtual void OnDataSent(int length);
111 111
112 // Called when SpdyStream is closed. 112 // Called when SpdyStream is closed.
113 virtual void OnClose(int status); 113 virtual void OnClose(int status);
114 114
115 private: 115 private:
116 enum State { 116 enum State {
117 STATE_NONE, 117 STATE_DISCONNECTED,
118 STATE_GENERATE_AUTH_TOKEN, 118 STATE_GENERATE_AUTH_TOKEN,
119 STATE_GENERATE_AUTH_TOKEN_COMPLETE, 119 STATE_GENERATE_AUTH_TOKEN_COMPLETE,
120 STATE_SEND_REQUEST, 120 STATE_SEND_REQUEST,
121 STATE_SEND_REQUEST_COMPLETE, 121 STATE_SEND_REQUEST_COMPLETE,
122 STATE_READ_REPLY_COMPLETE, 122 STATE_READ_REPLY_COMPLETE,
123 STATE_DONE, 123 STATE_OPEN,
124 STATE_CLOSED
124 }; 125 };
125 126
126 void OnIOComplete(int result); 127 void OnIOComplete(int result);
127 128
128 int DoLoop(int last_io_result); 129 int DoLoop(int last_io_result);
129 int DoGenerateAuthToken(); 130 int DoGenerateAuthToken();
130 int DoGenerateAuthTokenComplete(int result); 131 int DoGenerateAuthTokenComplete(int result);
131 int DoSendRequest(); 132 int DoSendRequest();
132 int DoSendRequestComplete(int result); 133 int DoSendRequestComplete(int result);
133 int DoReadReplyComplete(int result); 134 int DoReadReplyComplete(int result);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 bool was_ever_used_; 175 bool was_ever_used_;
175 176
176 const BoundNetLog net_log_; 177 const BoundNetLog net_log_;
177 178
178 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); 179 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket);
179 }; 180 };
180 181
181 } // namespace net 182 } // namespace net
182 183
183 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ 184 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698