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 16 matching lines...) Expand all Loading... |
27 #include "net/base/net_log.h" | 27 #include "net/base/net_log.h" |
28 #include "net/base/network_change_notifier.h" | 28 #include "net/base/network_change_notifier.h" |
29 #include "net/base/network_delegate.h" | 29 #include "net/base/network_delegate.h" |
30 #include "net/base/upload_data_stream.h" | 30 #include "net/base/upload_data_stream.h" |
31 #include "net/http/http_response_headers.h" | 31 #include "net/http/http_response_headers.h" |
32 #include "net/http/http_util.h" | 32 #include "net/http/http_util.h" |
33 #include "net/ssl/ssl_cert_request_info.h" | 33 #include "net/ssl/ssl_cert_request_info.h" |
34 #include "net/url_request/url_request_context.h" | 34 #include "net/url_request/url_request_context.h" |
35 #include "net/url_request/url_request_error_job.h" | 35 #include "net/url_request/url_request_error_job.h" |
36 #include "net/url_request/url_request_job.h" | 36 #include "net/url_request/url_request_job.h" |
| 37 #include "net/url_request/url_request_job_factory.h" |
37 #include "net/url_request/url_request_job_manager.h" | 38 #include "net/url_request/url_request_job_manager.h" |
38 #include "net/url_request/url_request_netlog_params.h" | 39 #include "net/url_request/url_request_netlog_params.h" |
39 #include "net/url_request/url_request_redirect_job.h" | 40 #include "net/url_request/url_request_redirect_job.h" |
40 | 41 |
41 using base::Time; | 42 using base::Time; |
42 using std::string; | 43 using std::string; |
43 | 44 |
44 namespace net { | 45 namespace net { |
45 | 46 |
46 namespace { | 47 namespace { |
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 net_log_.EndEvent(NetLog::TYPE_URL_REQUEST_DELEGATE); | 1232 net_log_.EndEvent(NetLog::TYPE_URL_REQUEST_DELEGATE); |
1232 } | 1233 } |
1233 | 1234 |
1234 void URLRequest::set_stack_trace(const base::debug::StackTrace& stack_trace) { | 1235 void URLRequest::set_stack_trace(const base::debug::StackTrace& stack_trace) { |
1235 base::debug::StackTrace* stack_trace_copy = | 1236 base::debug::StackTrace* stack_trace_copy = |
1236 new base::debug::StackTrace(NULL, 0); | 1237 new base::debug::StackTrace(NULL, 0); |
1237 *stack_trace_copy = stack_trace; | 1238 *stack_trace_copy = stack_trace; |
1238 stack_trace_.reset(stack_trace_copy); | 1239 stack_trace_.reset(stack_trace_copy); |
1239 } | 1240 } |
1240 | 1241 |
| 1242 void URLRequest::set_job_factory(scoped_ptr<URLRequestJobFactory> job_factory) { |
| 1243 job_factory_ = job_factory.Pass(); |
| 1244 } |
| 1245 |
1241 const base::debug::StackTrace* URLRequest::stack_trace() const { | 1246 const base::debug::StackTrace* URLRequest::stack_trace() const { |
1242 return stack_trace_.get(); | 1247 return stack_trace_.get(); |
1243 } | 1248 } |
1244 | 1249 |
1245 } // namespace net | 1250 } // namespace net |
OLD | NEW |