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

Unified Diff: net/http/http_stream_factory_impl_job.h

Issue 1586513002: QUIC - Whne alternate job decides to delay the main(TCP) job and if the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase TOT Created 4 years, 11 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
Index: net/http/http_stream_factory_impl_job.h
diff --git a/net/http/http_stream_factory_impl_job.h b/net/http/http_stream_factory_impl_job.h
index 5e935cc14d3af6370fd055db6fe72fa3468bc02d..3352a5ec30c9d38f038c1764fa26b25574233a25 100644
--- a/net/http/http_stream_factory_impl_job.h
+++ b/net/http/http_stream_factory_impl_job.h
@@ -113,6 +113,8 @@ class HttpStreamFactoryImpl::Job {
void MarkOtherJobComplete(const Job& job);
private:
+ FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, DelayMainJob);
+
enum State {
STATE_START,
STATE_RESOLVE_PROXY,
@@ -201,6 +203,9 @@ class HttpStreamFactoryImpl::Job {
const bool is_spdy_alternative_;
};
+ // Resume the |this| job after the specified |delay|.
+ void ResumeWaitingJobAfterDelay(const base::TimeDelta& delay);
+
void OnStreamReadyCallback();
void OnBidirectionalStreamJobReadyCallback();
void OnWebSocketHandshakeStreamReadyCallback();
@@ -352,6 +357,8 @@ class HttpStreamFactoryImpl::Job {
// proceed and then race the two Jobs.
Job* waiting_job_;
+ base::TimeDelta wait_time_;
+
// True if handling a HTTPS request, or using SPDY with SSL
bool using_ssl_;

Powered by Google App Engine
This is Rietveld 408576698