Index: content/browser/service_worker/service_worker_register_job.h |
diff --git a/content/browser/service_worker/service_worker_register_job.h b/content/browser/service_worker/service_worker_register_job.h |
index d1011cd7e7d99a7dfd9471bc268076210fc47575..cf2858da756d34c276bff1ba951bb701b4623d4c 100644 |
--- a/content/browser/service_worker/service_worker_register_job.h |
+++ b/content/browser/service_worker/service_worker_register_job.h |
@@ -12,6 +12,7 @@ |
#include "content/browser/service_worker/service_worker_register_job_base.h" |
#include "content/browser/service_worker/service_worker_registration.h" |
#include "content/common/service_worker/service_worker_status_code.h" |
+#include "content/public/browser/browser_main_runner.h" |
#include "url/gurl.h" |
namespace content { |
@@ -104,6 +105,7 @@ class ServiceWorkerRegisterJob : public ServiceWorkerRegisterJobBase, |
ServiceWorkerVersion* new_version(); |
void SetPhase(Phase phase); |
+ void Restart(); |
void ContinueWithRegistration( |
ServiceWorkerStatusCode status, |
@@ -160,6 +162,7 @@ class ServiceWorkerRegisterJob : public ServiceWorkerRegisterJobBase, |
ServiceWorkerStatusCode promise_resolved_status_; |
std::string promise_resolved_status_message_; |
scoped_refptr<ServiceWorkerRegistration> promise_resolved_registration_; |
+ base::OneShotTimer<ServiceWorkerRegisterJob> delayed_start_timer_; |
base::WeakPtrFactory<ServiceWorkerRegisterJob> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegisterJob); |