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

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

Issue 1097303003: Plumb ConnectionAttempts from HttpNetworkTransaction to URLRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@domrel_serverip1
Patch Set: rebase Created 5 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_job.h" 5 #include "net/url_request/url_request_job.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/power_monitor/power_monitor.h" 10 #include "base/power_monitor/power_monitor.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 return HostPortPair(); 266 return HostPortPair();
267 } 267 }
268 268
269 void URLRequestJob::OnSuspend() { 269 void URLRequestJob::OnSuspend() {
270 Kill(); 270 Kill();
271 } 271 }
272 272
273 void URLRequestJob::NotifyURLRequestDestroyed() { 273 void URLRequestJob::NotifyURLRequestDestroyed() {
274 } 274 }
275 275
276 void URLRequestJob::GetConnectionAttempts(ConnectionAttempts* out) const {
277 out->clear();
278 }
279
276 // static 280 // static
277 GURL URLRequestJob::ComputeReferrerForRedirect( 281 GURL URLRequestJob::ComputeReferrerForRedirect(
278 URLRequest::ReferrerPolicy policy, 282 URLRequest::ReferrerPolicy policy,
279 const std::string& referrer, 283 const std::string& referrer,
280 const GURL& redirect_destination) { 284 const GURL& redirect_destination) {
281 GURL original_referrer(referrer); 285 GURL original_referrer(referrer);
282 bool secure_referrer_but_insecure_destination = 286 bool secure_referrer_but_insecure_destination =
283 original_referrer.SchemeIsCryptographic() && 287 original_referrer.SchemeIsCryptographic() &&
284 !redirect_destination.SchemeIsCryptographic(); 288 !redirect_destination.SchemeIsCryptographic();
285 bool same_origin = 289 bool same_origin =
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 // Alter the referrer if redirecting cross-origin (especially HTTP->HTTPS). 865 // Alter the referrer if redirecting cross-origin (especially HTTP->HTTPS).
862 redirect_info.new_referrer = 866 redirect_info.new_referrer =
863 ComputeReferrerForRedirect(request_->referrer_policy(), 867 ComputeReferrerForRedirect(request_->referrer_policy(),
864 request_->referrer(), 868 request_->referrer(),
865 redirect_info.new_url).spec(); 869 redirect_info.new_url).spec();
866 870
867 return redirect_info; 871 return redirect_info;
868 } 872 }
869 873
870 } // namespace net 874 } // namespace net
OLDNEW
« net/url_request/url_request_job.h ('K') | « net/url_request/url_request_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698