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

Side by Side Diff: net/url_request/url_request_http_job.cc

Issue 848006: Generalize the net module's LoadLog facility from a passive container, to an event stream (NetLog). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Split up RequestTracker into ConnectJobTracker+RequestTracker+RequestTrackerBase, address comments Created 10 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « net/url_request/url_request_context.h ('k') | net/url_request/url_request_new_ftp_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « net/url_request/url_request_context.h ('k') | net/url_request/url_request_new_ftp_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698