Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2161)

Unified Diff: content/browser/storage_partition_impl.cc

Issue 61023005: service worker scaffolding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/storage_partition_impl.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index e984e617343d2e6c80ff3ef9cb44a4299d48a7ce..797e2364a907e963e4d395ab5beaaf7a709a7e00 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -284,7 +284,7 @@ StoragePartitionImpl::StoragePartitionImpl(
webkit_database::DatabaseTracker* database_tracker,
DOMStorageContextWrapper* dom_storage_context,
IndexedDBContextImpl* indexed_db_context,
- ServiceWorkerContext* service_worker_context,
+ ServiceWorkerContextWrapper* service_worker_context,
WebRTCIdentityStore* webrtc_identity_store)
: partition_path_(partition_path),
quota_manager_(quota_manager),
@@ -311,6 +311,9 @@ StoragePartitionImpl::~StoragePartitionImpl() {
if (GetDOMStorageContext())
GetDOMStorageContext()->Shutdown();
+
+ if (GetServiceWorkerContext())
+ GetServiceWorkerContext()->Shutdown();
}
// TODO(ajwong): Break the direct dependency on |context|. We only
@@ -369,8 +372,8 @@ StoragePartitionImpl* StoragePartitionImpl::Create(
quota_manager->proxy(),
idb_task_runner);
- scoped_refptr<ServiceWorkerContext> service_worker_context =
- new ServiceWorkerContext(path, quota_manager->proxy());
+ scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_wrapper =
+ new ServiceWorkerContextWrapper(path, quota_manager->proxy());
scoped_refptr<ChromeAppCacheService> appcache_service =
new ChromeAppCacheService(quota_manager->proxy());
@@ -385,7 +388,7 @@ StoragePartitionImpl* StoragePartitionImpl::Create(
database_tracker.get(),
dom_storage_context.get(),
indexed_db_context.get(),
- service_worker_context.get(),
+ service_worker_context_wrapper.get(),
webrtc_identity_store.get());
}
@@ -426,7 +429,7 @@ IndexedDBContextImpl* StoragePartitionImpl::GetIndexedDBContext() {
return indexed_db_context_.get();
}
-ServiceWorkerContext* StoragePartitionImpl::GetServiceWorkerContext() {
+ServiceWorkerContextWrapper* StoragePartitionImpl::GetServiceWorkerContext() {
return service_worker_context_.get();
}

Powered by Google App Engine
This is Rietveld 408576698