diff options
Diffstat (limited to 'net/url_request/url_request_job.h')
-rw-r--r-- | net/url_request/url_request_job.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/url_request/url_request_job.h b/net/url_request/url_request_job.h index cf98447..41015a8 100644 --- a/net/url_request/url_request_job.h +++ b/net/url_request/url_request_job.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -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); |