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