| OLD | NEW |
| 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_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 scoped_ptr<HttpFilterContext> filter_context_; | 247 scoped_ptr<HttpFilterContext> filter_context_; |
| 248 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 248 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
| 249 | 249 |
| 250 CompletionCallback on_headers_received_callback_; | 250 CompletionCallback on_headers_received_callback_; |
| 251 | 251 |
| 252 // We allow the network delegate to modify a copy of the response headers. | 252 // We allow the network delegate to modify a copy of the response headers. |
| 253 // This prevents modifications of headers that are shared with the underlying | 253 // This prevents modifications of headers that are shared with the underlying |
| 254 // layers of the network stack. | 254 // layers of the network stack. |
| 255 scoped_refptr<HttpResponseHeaders> override_response_headers_; | 255 scoped_refptr<HttpResponseHeaders> override_response_headers_; |
| 256 | 256 |
| 257 // The network delegate can mark a URL as safe for redirection. |
| 258 GURL allowed_unsafe_redirect_url_; |
| 259 |
| 257 // Flag used to verify that |this| is not deleted while we are awaiting | 260 // Flag used to verify that |this| is not deleted while we are awaiting |
| 258 // a callback from the NetworkDelegate. Used as a fail-fast mechanism. | 261 // a callback from the NetworkDelegate. Used as a fail-fast mechanism. |
| 259 // True if we are waiting a callback and | 262 // True if we are waiting a callback and |
| 260 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, | 263 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, |
| 261 // to inform the NetworkDelegate that it may not call back. | 264 // to inform the NetworkDelegate that it may not call back. |
| 262 bool awaiting_callback_; | 265 bool awaiting_callback_; |
| 263 | 266 |
| 264 const HttpUserAgentSettings* http_user_agent_settings_; | 267 const HttpUserAgentSettings* http_user_agent_settings_; |
| 265 | 268 |
| 266 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 269 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 267 }; | 270 }; |
| 268 | 271 |
| 269 } // namespace net | 272 } // namespace net |
| 270 | 273 |
| 271 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 274 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |