Index: content/browser/loader/resource_dispatcher_host_impl.h |
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h |
index 4951416730339897670b865961385f478e516c08..29cd25006bf22a8c0fd691f9a18df9623f6239b7 100644 |
--- a/content/browser/loader/resource_dispatcher_host_impl.h |
+++ b/content/browser/loader/resource_dispatcher_host_impl.h |
@@ -25,6 +25,7 @@ |
#include "base/time/time.h" |
#include "base/timer/timer.h" |
#include "content/browser/download/download_resource_handler.h" |
+#include "content/browser/loader/async_revalidation_manager.h" |
#include "content/browser/loader/global_routing_id.h" |
#include "content/browser/loader/resource_loader.h" |
#include "content/browser/loader/resource_loader_delegate.h" |
@@ -276,6 +277,10 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl |
const NavigationRequestInfo& info, |
NavigationURLLoaderImplCore* loader); |
+ // Turns on stale-while-revalidate support, regardless of command-line flags |
+ // or experiment status. For unit tests only. |
+ void EnableStaleWhileRevalidateForTesting(); |
+ |
private: |
friend class ResourceDispatcherHostTest; |
@@ -585,6 +590,10 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl |
bool allow_cross_origin_auth_prompt_; |
+ // AsyncRevalidationManager is non-NULL if and only if |
+ // stale-while-revalidate is enabled. |
+ scoped_ptr<AsyncRevalidationManager> async_revalidation_manager_; |
+ |
// http://crbug.com/90971 - Assists in tracking down use-after-frees on |
// shutdown. |
std::set<const ResourceContext*> active_resource_contexts_; |