Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ |
| 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "net/base/host_port_pair.h" | 8 #include "net/base/host_port_pair.h" |
| 9 #include "net/base/privacy_mode.h" | 9 #include "net/base/privacy_mode.h" |
| 10 #include "net/http/http_stream_factory_impl_job.h" | 10 #include "net/http/http_stream_factory_impl_job.h" |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 // Called to report to http_server_properties to mark alternative service | 224 // Called to report to http_server_properties to mark alternative service |
| 225 // broken. | 225 // broken. |
| 226 void ReportBrokenAlternativeService(); | 226 void ReportBrokenAlternativeService(); |
| 227 | 227 |
| 228 void MaybeNotifyFactoryOfCompletion(); | 228 void MaybeNotifyFactoryOfCompletion(); |
| 229 | 229 |
| 230 // Called to resume the main job with delay. Main job is resumed only when | 230 // Called to resume the main job with delay. Main job is resumed only when |
| 231 // |alternative_job_| has failed or |main_job_wait_time_| elapsed. | 231 // |alternative_job_| has failed or |main_job_wait_time_| elapsed. |
| 232 void MaybeResumeMainJob(Job* job, const base::TimeDelta& delay); | 232 void MaybeResumeMainJob(Job* job, const base::TimeDelta& delay); |
| 233 | 233 |
| 234 void ResumeMainJobLater(const base::TimeDelta& delay); | |
|
eroman
2017/02/14 21:18:36
Add comments?
Ryan Hamilton
2017/02/14 21:42:37
Done.
| |
| 234 void ResumeMainJob(); | 235 void ResumeMainJob(); |
| 235 | 236 |
| 236 // Returns true if QUIC is whitelisted for |host|. | 237 // Returns true if QUIC is whitelisted for |host|. |
| 237 bool IsQuicWhitelistedForHost(const std::string& host); | 238 bool IsQuicWhitelistedForHost(const std::string& host); |
| 238 | 239 |
| 239 AlternativeService GetAlternativeServiceFor( | 240 AlternativeService GetAlternativeServiceFor( |
| 240 const HttpRequestInfo& request_info, | 241 const HttpRequestInfo& request_info, |
| 241 HttpStreamRequest::Delegate* delegate, | 242 HttpStreamRequest::Delegate* delegate, |
| 242 HttpStreamRequest::StreamType stream_type); | 243 HttpStreamRequest::StreamType stream_type); |
| 243 | 244 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 318 PrivacyMode privacy_mode_; | 319 PrivacyMode privacy_mode_; |
| 319 | 320 |
| 320 const NetLogWithSource net_log_; | 321 const NetLogWithSource net_log_; |
| 321 | 322 |
| 322 base::WeakPtrFactory<JobController> ptr_factory_; | 323 base::WeakPtrFactory<JobController> ptr_factory_; |
| 323 }; | 324 }; |
| 324 | 325 |
| 325 } // namespace net | 326 } // namespace net |
| 326 | 327 |
| 327 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ | 328 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ |
| OLD | NEW |