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_; |