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

Unified Diff: net/http/http_stream_factory_impl_job_controller.h

Issue 1952423002: JobController 2: Remove reference between HttpStreamFactoryImpl::Jobs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Job_Controller_1
Patch Set: sync to JobController1, and move DoWaitForJob to JobController Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | net/http/http_stream_factory_impl_job_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_factory_impl_job_controller.h
diff --git a/net/http/http_stream_factory_impl_job_controller.h b/net/http/http_stream_factory_impl_job_controller.h
index a93bd4465121b73272a300e402031674c611843d..d4f2133154388735a335817906898a562ac9eeb2 100644
--- a/net/http/http_stream_factory_impl_job_controller.h
+++ b/net/http/http_stream_factory_impl_job_controller.h
@@ -50,6 +50,13 @@ class HttpStreamFactoryImpl::JobController {
void SetPriority(RequestPriority priority);
/* Methods below are called by HttpStreamFactoryImpl::Job only */
+
+ // Called when |job| is in STATE_WAIT_FOR_JOB. Set Job to
+ // STATE_INIT_CONNECTION
+ // if there's no Job blocking |job| and there's no waiting time.
+ // Otherwise resume |job| after wait_time.
+ int ScheduleJob(Job* job);
+
void OnStreamReady(Job* job,
const SSLConfig& used_ssl_config,
const ProxyInfo& used_proxy_info);
@@ -113,8 +120,12 @@ class HttpStreamFactoryImpl::JobController {
// Remove session from the SpdySessionRequestMap.
void RemoveRequestFromSpdySessionRequestMap(Job* job);
+ void MaybeResumeOtherJob(Job* job, const base::TimeDelta& delay);
+
const BoundNetLog* GetNetLog(Job* job) const;
+ bool blocking() { return blocking_; }
+
WebSocketHandshakeStreamBase::CreateHelper*
websocket_handshake_stream_create_helper();
@@ -194,6 +205,9 @@ class HttpStreamFactoryImpl::JobController {
// True if ever a job is explicitly bounded to the |request_|.
bool job_bounded_;
+ // True if the |main_job_| has to wait for |alternative_job_|;
+ bool blocking_;
+
// At the point where a Job is irrevocably tied to |request_|, we set this.
Job* bound_job_;
};
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | net/http/http_stream_factory_impl_job_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698