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

Unified Diff: net/url_request/url_request.cc

Issue 185403004: ServiceWorker request intercept plan 2: Add set_job_factory to URLRequestJob (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_job_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_job_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698