Index: content/browser/service_worker/service_worker_context_core.cc |
diff --git a/content/browser/service_worker/service_worker_context_core.cc b/content/browser/service_worker/service_worker_context_core.cc |
index 1e8e858e7e45bbbe45b1a662f352cf71e10f17e2..59b93037d9a1be2fee75ebef7af38bbe6f563d2a 100644 |
--- a/content/browser/service_worker/service_worker_context_core.cc |
+++ b/content/browser/service_worker/service_worker_context_core.cc |
@@ -102,6 +102,7 @@ ServiceWorkerContextCore::ServiceWorkerContextCore( |
embedded_worker_registry_(EmbeddedWorkerRegistry::Create(AsWeakPtr())), |
job_coordinator_(new ServiceWorkerJobCoordinator(AsWeakPtr())), |
next_handle_id_(0), |
+ next_registration_handle_id_(0), |
observer_list_(observer_list) { |
} |
@@ -120,6 +121,7 @@ ServiceWorkerContextCore::ServiceWorkerContextCore( |
old_context->embedded_worker_registry())), |
job_coordinator_(new ServiceWorkerJobCoordinator(AsWeakPtr())), |
next_handle_id_(0), |
+ next_registration_handle_id_(0), |
observer_list_(old_context->observer_list_) { |
} |
@@ -317,6 +319,10 @@ int ServiceWorkerContextCore::GetNewServiceWorkerHandleId() { |
return next_handle_id_++; |
} |
+int ServiceWorkerContextCore::GetNewRegistrationHandleId() { |
+ return next_registration_handle_id_++; |
+} |
+ |
void ServiceWorkerContextCore::ScheduleDeleteAndStartOver() const { |
storage_->Disable(); |
base::MessageLoop::current()->PostTask( |