OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_STORAGE_PARTITION_H_ | 5 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_STORAGE_PARTITION_H_ |
6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_STORAGE_PARTITION_H_ | 6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_STORAGE_PARTITION_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 | 10 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
100 scoped_refptr<net::URLRequestContextGetter> url_request_context_; | 100 scoped_refptr<net::URLRequestContextGetter> url_request_context_; |
101 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_; | 101 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_; |
102 scoped_refptr<ChromeAppCacheService> appcache_service_; | 102 scoped_refptr<ChromeAppCacheService> appcache_service_; |
103 scoped_refptr<quota::QuotaManager> quota_manager_; | 103 scoped_refptr<quota::QuotaManager> quota_manager_; |
104 scoped_refptr<fileapi::FileSystemContext> filesystem_context_; | 104 scoped_refptr<fileapi::FileSystemContext> filesystem_context_; |
105 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; | 105 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; |
106 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; | 106 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; |
107 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; | 107 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
108 }; | 108 }; |
109 | 109 |
110 // WorkerStoragePartitionId can be used to identify each | |
111 // WorkerStoragePartitions. We can hold WorkerStoragePartitionId without | |
112 // 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.
| |
113 class CONTENT_EXPORT WorkerStoragePartitionId { | |
114 public: | |
115 explicit WorkerStoragePartitionId(const WorkerStoragePartition& partition); | |
116 WorkerStoragePartitionId(const WorkerStoragePartitionId& other); | |
117 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.
| |
118 const WorkerStoragePartitionId& rhs); | |
119 ~WorkerStoragePartitionId(); | |
120 bool Equals(const WorkerStoragePartitionId& other) const; | |
121 | |
122 private: | |
123 void Copy(const WorkerStoragePartitionId& other); | |
124 | |
125 net::URLRequestContextGetter* url_request_context_; | |
126 net::URLRequestContextGetter* media_url_request_context_; | |
127 ChromeAppCacheService* appcache_service_; | |
128 quota::QuotaManager* quota_manager_; | |
129 fileapi::FileSystemContext* filesystem_context_; | |
130 webkit_database::DatabaseTracker* database_tracker_; | |
131 IndexedDBContextImpl* indexed_db_context_; | |
132 ServiceWorkerContextWrapper* service_worker_context_; | |
133 }; | |
134 | |
110 } // namespace content | 135 } // namespace content |
111 | 136 |
112 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_STORAGE_PARTITION_H_ | 137 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_STORAGE_PARTITION_H_ |
OLD | NEW |