diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-13 05:05:16 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-13 05:05:16 +0000 |
commit | 1f1e85668d0a8e33afbfafbc3b36420aaf04dc68 (patch) | |
tree | f559eb8c7647bcbd17721387256d39d87487d3df /content/browser/storage_partition_impl.h | |
parent | 2daefab56671b0a24156b60d9c6ef0b7de9585a1 (diff) | |
download | chromium_src-1f1e85668d0a8e33afbfafbc3b36420aaf04dc68.zip chromium_src-1f1e85668d0a8e33afbfafbc3b36420aaf04dc68.tar.gz chromium_src-1f1e85668d0a8e33afbfafbc3b36420aaf04dc68.tar.bz2 |
ServiceWorker scaffolding.
Refactor the 'context' class to have a thread-safe refcounted wrapper for use by higher level chromium code, and a single-threaded nonrefcounted core for use in the service worker lib. Added explicit Init() and Shutdown() methods on the wrapper class which are used by StoragePartitionImpl to get things started and cleaned up.
TBR=jam
BUG=285976
Review URL: https://codereview.chromium.org/61023005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234756 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/storage_partition_impl.h')
-rw-r--r-- | content/browser/storage_partition_impl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/browser/storage_partition_impl.h b/content/browser/storage_partition_impl.h index 7dfce5e..4edf474 100644 --- a/content/browser/storage_partition_impl.h +++ b/content/browser/storage_partition_impl.h @@ -12,7 +12,7 @@ #include "content/browser/dom_storage/dom_storage_context_wrapper.h" #include "content/browser/indexed_db/indexed_db_context_impl.h" #include "content/browser/media/webrtc_identity_store.h" -#include "content/browser/service_worker/service_worker_context.h" +#include "content/browser/service_worker/service_worker_context_wrapper.h" #include "content/common/content_export.h" #include "content/public/browser/storage_partition.h" #include "webkit/browser/quota/special_storage_policy.h" @@ -56,7 +56,7 @@ class StoragePartitionImpl : public StoragePartition { const base::Time end, const base::Closure& callback) OVERRIDE; - ServiceWorkerContext* GetServiceWorkerContext(); + ServiceWorkerContextWrapper* GetServiceWorkerContext(); WebRTCIdentityStore* GetWebRTCIdentityStore(); @@ -115,7 +115,7 @@ class StoragePartitionImpl : public StoragePartition { 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); @@ -154,7 +154,7 @@ class StoragePartitionImpl : public StoragePartition { scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; scoped_refptr<IndexedDBContextImpl> indexed_db_context_; - scoped_refptr<ServiceWorkerContext> service_worker_context_; + scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; |