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

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
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index 6d92f583a3bcd69549861928f6d66eb2c060c171..83e9e96df43cc644a9fb05e60bad0854da368654 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -325,7 +325,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,
quota::SpecialStoragePolicy* special_storage_policy)
: partition_path_(partition_path),
@@ -354,6 +354,9 @@ StoragePartitionImpl::~StoragePartitionImpl() {
if (GetDOMStorageContext())
GetDOMStorageContext()->Shutdown();
+
+ if (GetServiceWorkerContext())
+ GetServiceWorkerContext()->Shutdown();
}
// TODO(ajwong): Break the direct dependency on |context|. We only
@@ -412,8 +415,9 @@ 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 =
+ new ServiceWorkerContextWrapper();
+ service_worker_context->Init(path, quota_manager->proxy());
scoped_refptr<ChromeAppCacheService> appcache_service =
new ChromeAppCacheService(quota_manager->proxy());
@@ -473,7 +477,7 @@ IndexedDBContextImpl* StoragePartitionImpl::GetIndexedDBContext() {
return indexed_db_context_.get();
}
-ServiceWorkerContext* StoragePartitionImpl::GetServiceWorkerContext() {
+ServiceWorkerContextWrapper* StoragePartitionImpl::GetServiceWorkerContext() {
return service_worker_context_.get();
}
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698