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

Unified Diff: net/url_request/url_request_job.h

Issue 10534100: Decouple URLRequestJob from URLRequestContext; access NetworkDelegate as a contructor parameter. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merged with latest sync Created 8 years, 6 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_http_job.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_job.h
diff --git a/net/url_request/url_request_job.h b/net/url_request/url_request_job.h
index cf98447fc5a9e977d47a1ef080fd68446d5de27e..ef6ec1851e9cd28e5d75c8d716b26fcfbb325430 100644
--- a/net/url_request/url_request_job.h
+++ b/net/url_request/url_request_job.h
@@ -13,7 +13,6 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/system_monitor/system_monitor.h"
-#include "base/time.h"
#include "googleurl/src/gurl.h"
#include "net/base/filter.h"
#include "net/base/host_port_pair.h"
@@ -29,6 +28,7 @@ class CookieOptions;
class HttpRequestHeaders;
class HttpResponseInfo;
class IOBuffer;
+class NetworkDelegate;
class SSLCertRequestInfo;
class SSLInfo;
class URLRequest;
@@ -39,7 +39,8 @@ class X509Certificate;
class NET_EXPORT URLRequestJob : public base::RefCounted<URLRequestJob>,
public base::SystemMonitor::PowerObserver {
public:
- explicit URLRequestJob(URLRequest* request);
+ explicit URLRequestJob(URLRequest* request,
+ NetworkDelegate* network_delegate);
// Returns the request that owns this job. THIS POINTER MAY BE NULL if the
// request was destroyed.
@@ -372,6 +373,8 @@ class NET_EXPORT URLRequestJob : public base::RefCounted<URLRequestJob>,
GURL deferred_redirect_url_;
int deferred_redirect_status_code_;
+ NetworkDelegate* network_delegate_;
+
base::WeakPtrFactory<URLRequestJob> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698