Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: net/http/http_stream_factory_impl_job_controller.h

Issue 2707583002: Revert of Resume the main job immediately when QUIC job fails, not wait for the head start timer to exprie (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl_job_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/http/http_stream_factory_impl_job.h" 9 #include "net/http/http_stream_factory_impl_job.h"
10 #include "net/http/http_stream_factory_impl_request.h" 10 #include "net/http/http_stream_factory_impl_request.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // server that |alternative_job_| uses. 285 // server that |alternative_job_| uses.
286 AlternativeService failed_alternative_service_; 286 AlternativeService failed_alternative_service_;
287 ProxyServer failed_alternative_proxy_server_; 287 ProxyServer failed_alternative_proxy_server_;
288 288
289 // True if a Job has ever been bound to the |request_|. 289 // True if a Job has ever been bound to the |request_|.
290 bool job_bound_; 290 bool job_bound_;
291 291
292 // True if the main job has to wait for the alternative job: i.e., the main 292 // True if the main job has to wait for the alternative job: i.e., the main
293 // job must not create a connection until it is resumed. 293 // job must not create a connection until it is resumed.
294 bool main_job_is_blocked_; 294 bool main_job_is_blocked_;
295
296 // True if the main job was blocked and has been resumed in ResumeMainJob().
297 bool main_job_is_resumed_;
298
299 // Waiting time for the main job before it is resumed. 295 // Waiting time for the main job before it is resumed.
300 base::TimeDelta main_job_wait_time_; 296 base::TimeDelta main_job_wait_time_;
301 297
302 // At the point where a Job is irrevocably tied to |request_|, we set this. 298 // At the point where a Job is irrevocably tied to |request_|, we set this.
303 // It will be nulled when the |request_| is finished. 299 // It will be nulled when the |request_| is finished.
304 Job* bound_job_; 300 Job* bound_job_;
305 301
306 // True if an alternative proxy server job can be started to fetch |request_|. 302 // True if an alternative proxy server job can be started to fetch |request_|.
307 bool can_start_alternative_proxy_job_; 303 bool can_start_alternative_proxy_job_;
308 304
309 base::WeakPtrFactory<JobController> ptr_factory_; 305 base::WeakPtrFactory<JobController> ptr_factory_;
310 }; 306 };
311 307
312 } // namespace net 308 } // namespace net
313 309
314 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ 310 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl_job_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698