| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 void URLRequest::SetExtraRequestHeaders( | 366 void URLRequest::SetExtraRequestHeaders( |
| 367 const HttpRequestHeaders& headers) { | 367 const HttpRequestHeaders& headers) { |
| 368 DCHECK(!is_pending_); | 368 DCHECK(!is_pending_); |
| 369 extra_request_headers_ = headers; | 369 extra_request_headers_ = headers; |
| 370 | 370 |
| 371 // NOTE: This method will likely become non-trivial once the other setters | 371 // NOTE: This method will likely become non-trivial once the other setters |
| 372 // for request headers are implemented. | 372 // for request headers are implemented. |
| 373 } | 373 } |
| 374 | 374 |
| 375 bool URLRequest::GetFullRequestHeaders(HttpRequestHeaders* headers) const { | 375 bool URLRequest::GetFullRequestHeaders(HttpRequestHeaders* headers) const { |
| 376 if (!job_) | 376 if (!job_.get()) |
| 377 return false; | 377 return false; |
| 378 | 378 |
| 379 return job_->GetFullRequestHeaders(headers); | 379 return job_->GetFullRequestHeaders(headers); |
| 380 } | 380 } |
| 381 | 381 |
| 382 LoadStateWithParam URLRequest::GetLoadState() const { | 382 LoadStateWithParam URLRequest::GetLoadState() const { |
| 383 if (blocked_on_delegate_) { | 383 if (blocked_on_delegate_) { |
| 384 return LoadStateWithParam(LOAD_STATE_WAITING_FOR_DELEGATE, | 384 return LoadStateWithParam(LOAD_STATE_WAITING_FOR_DELEGATE, |
| 385 load_state_param_); | 385 load_state_param_); |
| 386 } | 386 } |
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1097 new base::debug::StackTrace(NULL, 0); | 1097 new base::debug::StackTrace(NULL, 0); |
| 1098 *stack_trace_copy = stack_trace; | 1098 *stack_trace_copy = stack_trace; |
| 1099 stack_trace_.reset(stack_trace_copy); | 1099 stack_trace_.reset(stack_trace_copy); |
| 1100 } | 1100 } |
| 1101 | 1101 |
| 1102 const base::debug::StackTrace* URLRequest::stack_trace() const { | 1102 const base::debug::StackTrace* URLRequest::stack_trace() const { |
| 1103 return stack_trace_.get(); | 1103 return stack_trace_.get(); |
| 1104 } | 1104 } |
| 1105 | 1105 |
| 1106 } // namespace net | 1106 } // namespace net |
| OLD | NEW |