Index: net/url_request/url_request.cc |
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc |
index 58697a2faaf3979412bec901d895cb117f510bce..b372feaa80b4ecd210d3a287ac3eed1e5dd69dc9 100644 |
--- a/net/url_request/url_request.cc |
+++ b/net/url_request/url_request.cc |
@@ -34,6 +34,7 @@ |
#include "net/url_request/url_request_context.h" |
#include "net/url_request/url_request_error_job.h" |
#include "net/url_request/url_request_job.h" |
+#include "net/url_request/url_request_job_factory.h" |
#include "net/url_request/url_request_job_manager.h" |
#include "net/url_request/url_request_netlog_params.h" |
#include "net/url_request/url_request_redirect_job.h" |
@@ -1238,6 +1239,10 @@ void URLRequest::set_stack_trace(const base::debug::StackTrace& stack_trace) { |
stack_trace_.reset(stack_trace_copy); |
} |
+void URLRequest::set_job_factory(scoped_ptr<URLRequestJobFactory> job_factory) { |
+ job_factory_ = job_factory.Pass(); |
+} |
+ |
const base::debug::StackTrace* URLRequest::stack_trace() const { |
return stack_trace_.get(); |
} |