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