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

Unified Diff: net/url_request/url_request_about_job.cc

Issue 10855209: Refactoring: ProtocolHandler::MaybeCreateJob takes NetworkDelegate as argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest merge Created 8 years, 4 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_about_job.h ('k') | net/url_request/url_request_data_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_about_job.cc
diff --git a/net/url_request/url_request_about_job.cc b/net/url_request/url_request_about_job.cc
index d96f2d4b5d41d5070c9621b6fff3082299af3a8d..242a7357460f7afee0f229ff40e7b62736ef6e36 100644
--- a/net/url_request/url_request_about_job.cc
+++ b/net/url_request/url_request_about_job.cc
@@ -11,20 +11,20 @@
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/message_loop.h"
-#include "net/url_request/url_request.h"
-#include "net/url_request/url_request_context.h"
namespace net {
-URLRequestAboutJob::URLRequestAboutJob(URLRequest* request)
- : URLRequestJob(request, request->context()->network_delegate()),
+URLRequestAboutJob::URLRequestAboutJob(URLRequest* request,
+ NetworkDelegate* network_delegate)
+ : URLRequestJob(request, network_delegate),
ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {
}
// static
URLRequestJob* URLRequestAboutJob::Factory(URLRequest* request,
+ NetworkDelegate* network_delegate,
const std::string& scheme) {
- return new URLRequestAboutJob(request);
+ return new URLRequestAboutJob(request, network_delegate);
}
void URLRequestAboutJob::Start() {
« no previous file with comments | « net/url_request/url_request_about_job.h ('k') | net/url_request/url_request_data_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698