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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // snapshot it early on. | 232 // snapshot it early on. |
233 base::Time request_time_snapshot_; | 233 base::Time request_time_snapshot_; |
234 | 234 |
235 // Since we don't save all packet times in packet_times_, we save the | 235 // Since we don't save all packet times in packet_times_, we save the |
236 // last time for use in histograms. | 236 // last time for use in histograms. |
237 base::Time final_packet_time_; | 237 base::Time final_packet_time_; |
238 | 238 |
239 // The start time for the job, ignoring re-starts. | 239 // The start time for the job, ignoring re-starts. |
240 base::TimeTicks start_time_; | 240 base::TimeTicks start_time_; |
241 | 241 |
| 242 // When the transaction finished reading the request headers. |
| 243 base::TimeTicks receive_headers_end_; |
| 244 |
242 scoped_ptr<HttpFilterContext> filter_context_; | 245 scoped_ptr<HttpFilterContext> filter_context_; |
243 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; | 246 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; |
244 | 247 |
245 CompletionCallback on_headers_received_callback_; | 248 CompletionCallback on_headers_received_callback_; |
246 | 249 |
247 // We allow the network delegate to modify a copy of the response headers. | 250 // We allow the network delegate to modify a copy of the response headers. |
248 // This prevents modifications of headers that are shared with the underlying | 251 // This prevents modifications of headers that are shared with the underlying |
249 // layers of the network stack. | 252 // layers of the network stack. |
250 scoped_refptr<HttpResponseHeaders> override_response_headers_; | 253 scoped_refptr<HttpResponseHeaders> override_response_headers_; |
251 | 254 |
252 // Flag used to verify that |this| is not deleted while we are awaiting | 255 // Flag used to verify that |this| is not deleted while we are awaiting |
253 // a callback from the NetworkDelegate. Used as a fail-fast mechanism. | 256 // a callback from the NetworkDelegate. Used as a fail-fast mechanism. |
254 // True if we are waiting a callback and | 257 // True if we are waiting a callback and |
255 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, | 258 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, |
256 // to inform the NetworkDelegate that it may not call back. | 259 // to inform the NetworkDelegate that it may not call back. |
257 bool awaiting_callback_; | 260 bool awaiting_callback_; |
258 | 261 |
259 scoped_ptr<HttpTransactionDelegateImpl> http_transaction_delegate_; | 262 scoped_ptr<HttpTransactionDelegateImpl> http_transaction_delegate_; |
260 | 263 |
261 const HttpUserAgentSettings* http_user_agent_settings_; | 264 const HttpUserAgentSettings* http_user_agent_settings_; |
262 | 265 |
263 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 266 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
264 }; | 267 }; |
265 | 268 |
266 } // namespace net | 269 } // namespace net |
267 | 270 |
268 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 271 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |