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

Side by Side Diff: net/http/http_stream_factory_impl_job_controller.h

Issue 2699433003: Add net-log entries when HttpStream jobs are forced to wait, and when they're delayed and resumed. (Closed)
Patch Set: fix comments from eroman Created 3 years, 10 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 unified diff | Download patch
OLDNEW
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
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 // Posts a task to resume the main job after |delay|.
235 void ResumeMainJobLater(const base::TimeDelta& delay);
236
237 // Resumes the main job immediately.
234 void ResumeMainJob(); 238 void ResumeMainJob();
235 239
236 // Returns true if QUIC is whitelisted for |host|. 240 // Returns true if QUIC is whitelisted for |host|.
237 bool IsQuicWhitelistedForHost(const std::string& host); 241 bool IsQuicWhitelistedForHost(const std::string& host);
238 242
239 AlternativeService GetAlternativeServiceFor( 243 AlternativeService GetAlternativeServiceFor(
240 const HttpRequestInfo& request_info, 244 const HttpRequestInfo& request_info,
241 HttpStreamRequest::Delegate* delegate, 245 HttpStreamRequest::Delegate* delegate,
242 HttpStreamRequest::StreamType stream_type); 246 HttpStreamRequest::StreamType stream_type);
243 247
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 PrivacyMode privacy_mode_; 322 PrivacyMode privacy_mode_;
319 323
320 const NetLogWithSource net_log_; 324 const NetLogWithSource net_log_;
321 325
322 base::WeakPtrFactory<JobController> ptr_factory_; 326 base::WeakPtrFactory<JobController> ptr_factory_;
323 }; 327 };
324 328
325 } // namespace net 329 } // namespace net
326 330
327 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ 331 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698