| 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 d4ba0a34daf693fa1e8cc0426af972e80dd5597b..439011719e777b4ab73edd1cf3175754fc0d69de 100644
|
| --- a/content/browser/service_worker/service_worker_context_core.cc
|
| +++ b/content/browser/service_worker/service_worker_context_core.cc
|
| @@ -437,6 +437,20 @@ ServiceWorkerContextCore::GetAllLiveVersionInfo() {
|
| return infos;
|
| }
|
|
|
| +void ServiceWorkerContextCore::ProtectVersion(
|
| + const scoped_refptr<ServiceWorkerVersion>& version) {
|
| + DCHECK(protected_versions_.find(version->version_id()) ==
|
| + protected_versions_.end());
|
| + protected_versions_[version->version_id()] = version;
|
| +}
|
| +
|
| +void ServiceWorkerContextCore::UnprotectVersion(
|
| + const scoped_refptr<ServiceWorkerVersion>& version) {
|
| + DCHECK(protected_versions_.find(version->version_id()) !=
|
| + protected_versions_.end());
|
| + protected_versions_.erase(version->version_id());
|
| +}
|
| +
|
| int ServiceWorkerContextCore::GetNewServiceWorkerHandleId() {
|
| return next_handle_id_++;
|
| }
|
|
|