| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 int DoGenerateAuthToken(); | 121 int DoGenerateAuthToken(); |
| 122 int DoGenerateAuthTokenComplete(int result); | 122 int DoGenerateAuthTokenComplete(int result); |
| 123 int DoSendRequest(); | 123 int DoSendRequest(); |
| 124 int DoSendRequestComplete(int result); | 124 int DoSendRequestComplete(int result); |
| 125 int DoReadReplyComplete(int result); | 125 int DoReadReplyComplete(int result); |
| 126 | 126 |
| 127 // Populates |user_buffer_| with as much read data as possible | 127 // Populates |user_buffer_| with as much read data as possible |
| 128 // and returns the number of bytes read. | 128 // and returns the number of bytes read. |
| 129 int PopulateUserReadBuffer(); | 129 int PopulateUserReadBuffer(); |
| 130 | 130 |
| 131 OldCompletionCallbackImpl<SpdyProxyClientSocket> io_callback_; | |
| 132 State next_state_; | 131 State next_state_; |
| 133 | 132 |
| 134 // Pointer to the SPDY Stream that this sits on top of. | 133 // Pointer to the SPDY Stream that this sits on top of. |
| 135 scoped_refptr<SpdyStream> spdy_stream_; | 134 scoped_refptr<SpdyStream> spdy_stream_; |
| 136 | 135 |
| 137 // Stores the callback to the layer above, called on completing Read() or | 136 // Stores the callback to the layer above, called on completing Read() or |
| 138 // Connect(). | 137 // Connect(). |
| 139 CompletionCallback read_callback_; | 138 CompletionCallback read_callback_; |
| 140 // Stores the callback to the layer above, called on completing Write(). | 139 // Stores the callback to the layer above, called on completing Write(). |
| 141 CompletionCallback write_callback_; | 140 CompletionCallback write_callback_; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 168 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_; | 167 base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_; |
| 169 | 168 |
| 170 const BoundNetLog net_log_; | 169 const BoundNetLog net_log_; |
| 171 | 170 |
| 172 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); | 171 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
| 173 }; | 172 }; |
| 174 | 173 |
| 175 } // namespace net | 174 } // namespace net |
| 176 | 175 |
| 177 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ | 176 #endif // NET_SPDY_SPDY_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |