Index: content/browser/frame_host/navigation_handle_impl.h |
diff --git a/content/browser/frame_host/navigation_handle_impl.h b/content/browser/frame_host/navigation_handle_impl.h |
index 59a5f65ecc517a5457ab1621684a2db3f40230b4..6f46707108e531ceac132639638d387611e5710f 100644 |
--- a/content/browser/frame_host/navigation_handle_impl.h |
+++ b/content/browser/frame_host/navigation_handle_impl.h |
@@ -19,6 +19,7 @@ |
namespace content { |
class NavigatorDelegate; |
+class ServiceWorkerNavigationHandle; |
struct NavigationRequestInfo; |
// This class keeps track of a single navigation. It is created upon receipt of |
@@ -104,6 +105,11 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle { |
is_transferring_ = is_transferring; |
} |
+ // PlzNavigate |
+ ServiceWorkerNavigationHandle* service_worker_handle() const { |
+ return service_worker_handle_.get(); |
+ } |
+ |
typedef base::Callback<void(NavigationThrottle::ThrottleCheckResult)> |
ThrottleChecksFinishedCallback; |
@@ -194,6 +200,11 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle { |
// This callback will be run when all throttle checks have been performed. |
ThrottleChecksFinishedCallback complete_callback_; |
+ // PlzNavigate |
+ // Manages the lifetime of a pre-created ServiceWorkerProviderHost until a |
+ // corresponding ServiceWorkerNetworkProvider is created in the renderer. |
+ scoped_ptr<ServiceWorkerNavigationHandle> service_worker_handle_; |
+ |
DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); |
}; |