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

Side by Side Diff: net/url_request/url_request.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.h" 5 #include "net/url_request/url_request.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 base::debug::StackTrace* stack_trace_copy = 1182 base::debug::StackTrace* stack_trace_copy =
1183 new base::debug::StackTrace(NULL, 0); 1183 new base::debug::StackTrace(NULL, 0);
1184 *stack_trace_copy = stack_trace; 1184 *stack_trace_copy = stack_trace;
1185 stack_trace_.reset(stack_trace_copy); 1185 stack_trace_.reset(stack_trace_copy);
1186 } 1186 }
1187 1187
1188 const base::debug::StackTrace* URLRequest::stack_trace() const { 1188 const base::debug::StackTrace* URLRequest::stack_trace() const {
1189 return stack_trace_.get(); 1189 return stack_trace_.get();
1190 } 1190 }
1191 1191
1192 void URLRequest::GetConnectionAttempts(ConnectionAttempts* out) const {
1193 if (job_)
1194 job_->GetConnectionAttempts(out);
1195 else
1196 out->clear();
1197 }
1198
1192 } // namespace net 1199 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698