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

Unified Diff: net/http/http_stream_factory_impl_job_controller.h

Issue 2332193003: JobController3: Move MarkAlternativeServiceBroken to job controller (Closed)
Patch Set: nits Created 4 years, 3 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 d54165028ab569ff72e50a2710da9e0e8703d539..74f5501565308f6e1d0c25787dfbb58106c72bdf 100644
--- a/net/http/http_stream_factory_impl_job_controller.h
+++ b/net/http/http_stream_factory_impl_job_controller.h
@@ -201,6 +201,13 @@ class HttpStreamFactoryImpl::JobController
NextProto negotiated_protocol,
bool using_spdy);
+ // Must be called when |alternative_job_| fails.
+ void OnAlternativeJobFailed(Job* job);
+
+ // Called to report to http_server_properties to mark alternative service
+ // broken.
+ void ReportBrokenAlternativeService();
+
void MaybeNotifyFactoryOfCompletion();
// Called to resume the main job with delay.
@@ -255,6 +262,15 @@ class HttpStreamFactoryImpl::JobController
std::unique_ptr<Job> main_job_;
std::unique_ptr<Job> alternative_job_;
+ // True if |alternative_job_| uses alternative service/proxy server and it
+ // fails.
+ bool alternative_job_failed_;
+
+ // Either and only one of these records failed alternative service/proxy
+ // server that |alternative_job_| uses.
+ AlternativeService failed_alternative_service_;
+ ProxyServer failed_alternative_proxy_server_;
+
// True if a Job has ever been bound to the |request_|.
bool job_bound_;
« 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