OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/url_request/url_request_http_job.h" | 5 #include "net/url_request/url_request_http_job.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 username_.clear(); | 610 username_.clear(); |
611 password_.clear(); | 611 password_.clear(); |
612 } else { | 612 } else { |
613 DCHECK(request_->context()); | 613 DCHECK(request_->context()); |
614 DCHECK(request_->context()->http_transaction_factory()); | 614 DCHECK(request_->context()->http_transaction_factory()); |
615 | 615 |
616 rv = request_->context()->http_transaction_factory()->CreateTransaction( | 616 rv = request_->context()->http_transaction_factory()->CreateTransaction( |
617 &transaction_); | 617 &transaction_); |
618 if (rv == net::OK) { | 618 if (rv == net::OK) { |
619 rv = transaction_->Start( | 619 rv = transaction_->Start( |
620 &request_info_, &start_callback_, request_->load_log()); | 620 &request_info_, &start_callback_, request_->net_log()); |
621 } | 621 } |
622 } | 622 } |
623 | 623 |
624 if (rv == net::ERR_IO_PENDING) | 624 if (rv == net::ERR_IO_PENDING) |
625 return; | 625 return; |
626 | 626 |
627 // The transaction started synchronously, but we need to notify the | 627 // The transaction started synchronously, but we need to notify the |
628 // URLRequest delegate via the message loop. | 628 // URLRequest delegate via the message loop. |
629 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( | 629 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( |
630 this, &URLRequestHttpJob::OnStartCompleted, rv)); | 630 this, &URLRequestHttpJob::OnStartCompleted, rv)); |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 net::HTTPSProberDelegate* delegate = | 893 net::HTTPSProberDelegate* delegate = |
894 new HTTPSProberDelegate(request_info_.url.host(), max_age, | 894 new HTTPSProberDelegate(request_info_.url.host(), max_age, |
895 include_subdomains, | 895 include_subdomains, |
896 ctx->transport_security_state()); | 896 ctx->transport_security_state()); |
897 if (!prober->ProbeHost(request_info_.url.host(), request()->context(), | 897 if (!prober->ProbeHost(request_info_.url.host(), request()->context(), |
898 delegate)) { | 898 delegate)) { |
899 delete delegate; | 899 delete delegate; |
900 } | 900 } |
901 } | 901 } |
902 } | 902 } |
OLD | NEW |