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. | |
113 // That means that holding a WorkerStoragePartitionId doesn't mean the | |
114 // corresponding partitionand its members are kept alive. | |
kinuko
2014/04/24 04:53:38
nit: missing space between 'partition' and 'and'
horo
2014/04/24 05:09:52
Done.
| |
115 class CONTENT_EXPORT WorkerStoragePartitionId { | |
116 public: | |
117 explicit WorkerStoragePartitionId(const WorkerStoragePartition& partition); | |
118 ~WorkerStoragePartitionId(); | |
119 bool Equals(const WorkerStoragePartitionId& other) const; | |
120 | |
121 private: | |
122 net::URLRequestContextGetter* url_request_context_; | |
123 net::URLRequestContextGetter* media_url_request_context_; | |
124 ChromeAppCacheService* appcache_service_; | |
125 quota::QuotaManager* quota_manager_; | |
126 fileapi::FileSystemContext* filesystem_context_; | |
127 webkit_database::DatabaseTracker* database_tracker_; | |
128 IndexedDBContextImpl* indexed_db_context_; | |
129 ServiceWorkerContextWrapper* service_worker_context_; | |
130 }; | |
131 | |
110 } // namespace content | 132 } // namespace content |
111 | 133 |
112 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_STORAGE_PARTITION_H_ | 134 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_STORAGE_PARTITION_H_ |
OLD | NEW |