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

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

Issue 2623383005: Log states of JobController in Net MemoryDumpProvider (Closed)
Patch Set: self review 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 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 #include "net/http/http_stream_factory_impl_job_controller.h" 5 #include "net/http/http_stream_factory_impl_job_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 DCHECK(request_); 628 DCHECK(request_);
629 return &request_->net_log(); 629 return &request_->net_log();
630 } 630 }
631 631
632 void HttpStreamFactoryImpl::JobController::MaybeSetWaitTimeForMainJob( 632 void HttpStreamFactoryImpl::JobController::MaybeSetWaitTimeForMainJob(
633 const base::TimeDelta& delay) { 633 const base::TimeDelta& delay) {
634 if (main_job_is_blocked_) 634 if (main_job_is_blocked_)
635 main_job_wait_time_ = delay; 635 main_job_wait_time_ = delay;
636 } 636 }
637 637
638 bool HttpStreamFactoryImpl::JobController::HasPendingAltJob() const {
639 return alternative_job_.get() != nullptr;
640 }
641
638 WebSocketHandshakeStreamBase::CreateHelper* HttpStreamFactoryImpl:: 642 WebSocketHandshakeStreamBase::CreateHelper* HttpStreamFactoryImpl::
639 JobController::websocket_handshake_stream_create_helper() { 643 JobController::websocket_handshake_stream_create_helper() {
640 DCHECK(request_); 644 DCHECK(request_);
641 return request_->websocket_handshake_stream_create_helper(); 645 return request_->websocket_handshake_stream_create_helper();
642 } 646 }
643 647
644 void HttpStreamFactoryImpl::JobController::CreateJobs( 648 void HttpStreamFactoryImpl::JobController::CreateJobs(
645 const HttpRequestInfo& request_info, 649 const HttpRequestInfo& request_info,
646 RequestPriority priority, 650 RequestPriority priority,
647 const SSLConfig& server_ssl_config, 651 const SSLConfig& server_ssl_config,
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 return; 1098 return;
1095 DCHECK(alternative_job_->alternative_proxy_server().is_valid()); 1099 DCHECK(alternative_job_->alternative_proxy_server().is_valid());
1096 alternative_job_->Start(request_->stream_type()); 1100 alternative_job_->Start(request_->stream_type());
1097 } 1101 }
1098 1102
1099 bool HttpStreamFactoryImpl::JobController::IsJobOrphaned(Job* job) const { 1103 bool HttpStreamFactoryImpl::JobController::IsJobOrphaned(Job* job) const {
1100 return !request_ || (job_bound_ && bound_job_ != job); 1104 return !request_ || (job_bound_ && bound_job_ != job);
1101 } 1105 }
1102 1106
1103 } // namespace net 1107 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698