Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 int DoReadHeadersComplete(int result); | 107 int DoReadHeadersComplete(int result); |
| 108 int DoDrainBody(); | 108 int DoDrainBody(); |
| 109 int DoDrainBodyComplete(int result); | 109 int DoDrainBodyComplete(int result); |
| 110 | 110 |
| 111 CompletionCallbackImpl<HttpProxyClientSocket> io_callback_; | 111 CompletionCallbackImpl<HttpProxyClientSocket> io_callback_; |
| 112 State next_state_; | 112 State next_state_; |
| 113 | 113 |
| 114 // Stores the callback to the layer above, called on completing Connect(). | 114 // Stores the callback to the layer above, called on completing Connect(). |
| 115 CompletionCallback* user_callback_; | 115 CompletionCallback* user_callback_; |
| 116 | 116 |
| 117 HttpRequestInfo request_; | |
|
cbentzel
2010/07/13 02:13:25
Is the reordering of member variables intentional?
vandebo (ex-Chrome)
2010/07/13 16:53:01
Yes, they were pretty randomly ordered before, and
| |
| 118 HttpResponseInfo response_; | |
| 119 | |
| 120 scoped_ptr<HttpStream> http_stream_; | |
| 121 scoped_refptr<IOBuffer> drain_buf_; | |
| 122 | |
| 117 // Stores the underlying socket. | 123 // Stores the underlying socket. |
| 118 scoped_ptr<ClientSocketHandle> transport_; | 124 const scoped_ptr<ClientSocketHandle> transport_; |
| 119 | 125 |
| 120 bool tunnel_; | 126 // The hostname and port of the endpoint. This is not necessarily the one |
| 127 // specified by the URL, due to Alternate-Protocol or fixed testing ports. | |
| 128 const HostPortPair endpoint_; | |
| 129 scoped_refptr<HttpAuthController> auth_; | |
| 130 const bool tunnel_; | |
|
cbentzel
2010/07/13 02:13:25
I haven't seen const used for POD member variables
vandebo (ex-Chrome)
2010/07/13 16:53:01
I guess const POD isn't used much in the codebase,
| |
| 121 | 131 |
| 122 std::string request_headers_; | 132 std::string request_headers_; |
| 123 | 133 |
| 124 scoped_ptr<HttpStream> http_stream_; | 134 const BoundNetLog net_log_; |
| 125 HttpRequestInfo request_; | |
| 126 HttpResponseInfo response_; | |
| 127 const scoped_refptr<HttpAuthController> auth_; | |
| 128 | |
| 129 // The hostname and port of the endpoint. This is not necessarily the one | |
| 130 // specified by the URL, due to Alternate-Protocol or fixed testing ports. | |
| 131 HostPortPair endpoint_; | |
| 132 | |
| 133 scoped_refptr<IOBuffer> drain_buf_; | |
| 134 | |
| 135 BoundNetLog net_log_; | |
| 136 | 135 |
| 137 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); | 136 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); |
| 138 }; | 137 }; |
| 139 | 138 |
| 140 } // namespace net | 139 } // namespace net |
| 141 | 140 |
| 142 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 141 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |