| Index: content/browser/worker_host/worker_storage_partition.h
|
| diff --git a/content/browser/worker_host/worker_storage_partition.h b/content/browser/worker_host/worker_storage_partition.h
|
| index 2f4bb235b0ae38954be57bf51d96cc192d423400..aebd683c3f533e8e54ce3c4e1d1af2bb49e294aa 100644
|
| --- a/content/browser/worker_host/worker_storage_partition.h
|
| +++ b/content/browser/worker_host/worker_storage_partition.h
|
| @@ -107,6 +107,28 @@ class CONTENT_EXPORT WorkerStoragePartition {
|
| scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
|
| };
|
|
|
| +// WorkerStoragePartitionId can be used to identify each
|
| +// WorkerStoragePartitions. We can hold WorkerStoragePartitionId without
|
| +// extending the lifetime of all objects in the WorkerStoragePartition.
|
| +// That means that holding a WorkerStoragePartitionId doesn't mean the
|
| +// corresponding partition and its members are kept alive.
|
| +class CONTENT_EXPORT WorkerStoragePartitionId {
|
| + public:
|
| + explicit WorkerStoragePartitionId(const WorkerStoragePartition& partition);
|
| + ~WorkerStoragePartitionId();
|
| + bool Equals(const WorkerStoragePartitionId& other) const;
|
| +
|
| + private:
|
| + net::URLRequestContextGetter* url_request_context_;
|
| + net::URLRequestContextGetter* media_url_request_context_;
|
| + ChromeAppCacheService* appcache_service_;
|
| + quota::QuotaManager* quota_manager_;
|
| + fileapi::FileSystemContext* filesystem_context_;
|
| + webkit_database::DatabaseTracker* database_tracker_;
|
| + IndexedDBContextImpl* indexed_db_context_;
|
| + ServiceWorkerContextWrapper* service_worker_context_;
|
| +};
|
| +
|
| } // namespace content
|
|
|
| #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_STORAGE_PARTITION_H_
|
|
|