Chromium Code Reviews| 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_; | |
|
Ryan Hamilton
2017/02/15 00:07:02
nit: newline after
(or no newline before, but mi
Zhongyi Shi
2017/02/15 00:26:58
Done.
| |
| 307 // Waiting time for the main job before it is resumed. | 310 // Waiting time for the main job before it is resumed. |
| 308 base::TimeDelta main_job_wait_time_; | 311 base::TimeDelta main_job_wait_time_; |
| 309 | 312 |
| 310 // At the point where a Job is irrevocably tied to |request_|, we set this. | 313 // At the point where a Job is irrevocably tied to |request_|, we set this. |
| 311 // It will be nulled when the |request_| is finished. | 314 // It will be nulled when the |request_| is finished. |
| 312 Job* bound_job_; | 315 Job* bound_job_; |
| 313 | 316 |
| 314 // True if an alternative proxy server job can be started to fetch |request_|. | 317 // True if an alternative proxy server job can be started to fetch |request_|. |
| 315 bool can_start_alternative_proxy_job_; | 318 bool can_start_alternative_proxy_job_; |
| 316 | 319 |
| 317 // Privacy mode that should be used for fetching the resource. | 320 // Privacy mode that should be used for fetching the resource. |
| 318 PrivacyMode privacy_mode_; | 321 PrivacyMode privacy_mode_; |
| 319 | 322 |
| 320 const NetLogWithSource net_log_; | 323 const NetLogWithSource net_log_; |
| 321 | 324 |
| 322 base::WeakPtrFactory<JobController> ptr_factory_; | 325 base::WeakPtrFactory<JobController> ptr_factory_; |
| 323 }; | 326 }; |
| 324 | 327 |
| 325 } // namespace net | 328 } // namespace net |
| 326 | 329 |
| 327 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ | 330 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ |
| OLD | NEW |