| 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..a45441c4a8b5d85a5c31964c5d74211716ac8961 100644
|
| --- a/content/browser/service_worker/service_worker_context_core.cc
|
| +++ b/content/browser/service_worker/service_worker_context_core.cc
|
| @@ -437,6 +437,18 @@ 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(int64 version_id) {
|
| + DCHECK(protected_versions_.find(version_id) != protected_versions_.end());
|
| + protected_versions_.erase(version_id);
|
| +}
|
| +
|
| int ServiceWorkerContextCore::GetNewServiceWorkerHandleId() {
|
| return next_handle_id_++;
|
| }
|
|
|