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

Unified Diff: net/http/http_stream_factory_impl_job.h

Issue 2595413002: Race preconnects to HTTP2 proxies that support alternate proxies
Patch Set: Rebased, rch comments Created 3 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 6917b0e74a60cbf67bcb64238a7a882c894c221e..12c0b2bb73f9bf0bca95648af6d2c8574cdf89f6 100644
--- a/net/http/http_stream_factory_impl_job.h
+++ b/net/http/http_stream_factory_impl_job.h
@@ -215,6 +215,9 @@ class HttpStreamFactoryImpl::Job {
void SetPriority(RequestPriority priority);
+ // Sets |num_streams_| to 1 for preconnect jobs.
+ void RestrictNumStreamsToOne();
+
RequestPriority priority() const { return priority_; }
bool was_alpn_negotiated() const;
NextProto negotiated_protocol() const;

Powered by Google App Engine
This is Rietveld 408576698