OLD | NEW |
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 Loading... |
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 |
OLD | NEW |