Chromium Code Reviews| 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..2ed07487b0765c825be3a895f53718e90c51fe68 100644 |
| --- a/content/browser/worker_host/worker_storage_partition.h |
| +++ b/content/browser/worker_host/worker_storage_partition.h |
| @@ -107,6 +107,31 @@ 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. |
|
kinuko
2014/04/24 04:11:47
Probably we should also note that that means holdi
horo
2014/04/24 04:26:32
Done.
|
| +class CONTENT_EXPORT WorkerStoragePartitionId { |
| + public: |
| + explicit WorkerStoragePartitionId(const WorkerStoragePartition& partition); |
| + WorkerStoragePartitionId(const WorkerStoragePartitionId& other); |
| + const WorkerStoragePartitionId& operator=( |
|
kinuko
2014/04/24 04:11:47
I don't feel we need to explicitly declare these s
horo
2014/04/24 04:26:32
Done.
|
| + const WorkerStoragePartitionId& rhs); |
| + ~WorkerStoragePartitionId(); |
| + bool Equals(const WorkerStoragePartitionId& other) const; |
| + |
| + private: |
| + void Copy(const WorkerStoragePartitionId& other); |
| + |
| + 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_ |