Index: content/browser/loader/resource_loader.h |
diff --git a/content/browser/loader/resource_loader.h b/content/browser/loader/resource_loader.h |
index 6a611a723f5815b8a29fe9984552003b38f9b25a..589c66c6066203d0ad07e2c0220e952369f621a6 100644 |
--- a/content/browser/loader/resource_loader.h |
+++ b/content/browser/loader/resource_loader.h |
@@ -8,6 +8,7 @@ |
#include "base/gtest_prod_util.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/weak_ptr.h" |
+#include "base/timer/timer.h" |
#include "content/browser/loader/resource_handler.h" |
#include "content/browser/ssl/ssl_error_handler.h" |
#include "content/common/content_export.h" |
@@ -97,6 +98,8 @@ class CONTENT_EXPORT ResourceLoader : public net::URLRequest::Delegate, |
void StartRequestInternal(); |
void CancelRequestInternal(int error, bool from_renderer); |
+ bool DelayCancelForPrefetch(const ResourceRequestInfoImpl& info, |
+ bool from_renderer); |
void CompleteResponseStarted(); |
void StartReading(bool is_continuation); |
void ResumeReading(); |
@@ -133,10 +136,16 @@ class CONTENT_EXPORT ResourceLoader : public net::URLRequest::Delegate, |
// which point we'll receive a new ResourceHandler. |
bool is_transferring_; |
+ scoped_ptr<base::OneShotTimer<ResourceLoader> > prefetch_timer_; |
+ |
scoped_ptr<net::ClientCertStore> client_cert_store_; |
base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; |
mmenke
2013/10/08 14:50:54
WeakPtrFactories should always go last. The stati
jkarlin2
2013/10/09 14:44:33
Done.
|
+ // The time in ms to delay a cancel of a prefetch unless otherwise specified |
+ // by a flag. |
+ static int default_delay_prefetch_cancel_ms_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |
}; |