| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ |
| 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "net/base/host_port_pair.h" | 8 #include "net/base/host_port_pair.h" |
| 9 #include "net/base/privacy_mode.h" | 9 #include "net/base/privacy_mode.h" |
| 10 #include "net/http/http_stream_factory_impl_job.h" | 10 #include "net/http/http_stream_factory_impl_job.h" |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 // server that |alternative_job_| uses. | 301 // server that |alternative_job_| uses. |
| 302 AlternativeService failed_alternative_service_; | 302 AlternativeService failed_alternative_service_; |
| 303 ProxyServer failed_alternative_proxy_server_; | 303 ProxyServer failed_alternative_proxy_server_; |
| 304 | 304 |
| 305 // True if a Job has ever been bound to the |request_|. | 305 // True if a Job has ever been bound to the |request_|. |
| 306 bool job_bound_; | 306 bool job_bound_; |
| 307 | 307 |
| 308 // True if the main job has to wait for the alternative job: i.e., the main | 308 // True if the main job has to wait for the alternative job: i.e., the main |
| 309 // job must not create a connection until it is resumed. | 309 // job must not create a connection until it is resumed. |
| 310 bool main_job_is_blocked_; | 310 bool main_job_is_blocked_; |
| 311 |
| 312 // True if the main job was blocked and has been resumed in ResumeMainJob(). |
| 313 bool main_job_is_resumed_; |
| 314 |
| 311 // Waiting time for the main job before it is resumed. | 315 // Waiting time for the main job before it is resumed. |
| 312 base::TimeDelta main_job_wait_time_; | 316 base::TimeDelta main_job_wait_time_; |
| 313 | 317 |
| 314 // At the point where a Job is irrevocably tied to |request_|, we set this. | 318 // At the point where a Job is irrevocably tied to |request_|, we set this. |
| 315 // It will be nulled when the |request_| is finished. | 319 // It will be nulled when the |request_| is finished. |
| 316 Job* bound_job_; | 320 Job* bound_job_; |
| 317 | 321 |
| 318 // True if an alternative proxy server job can be started to fetch |request_|. | 322 // True if an alternative proxy server job can be started to fetch |request_|. |
| 319 bool can_start_alternative_proxy_job_; | 323 bool can_start_alternative_proxy_job_; |
| 320 | 324 |
| 321 // Privacy mode that should be used for fetching the resource. | 325 // Privacy mode that should be used for fetching the resource. |
| 322 PrivacyMode privacy_mode_; | 326 PrivacyMode privacy_mode_; |
| 323 | 327 |
| 324 const NetLogWithSource net_log_; | 328 const NetLogWithSource net_log_; |
| 325 | 329 |
| 326 base::WeakPtrFactory<JobController> ptr_factory_; | 330 base::WeakPtrFactory<JobController> ptr_factory_; |
| 327 }; | 331 }; |
| 328 | 332 |
| 329 } // namespace net | 333 } // namespace net |
| 330 | 334 |
| 331 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ | 335 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ |
| OLD | NEW |