Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Side by Side Diff: content/browser/worker_host/worker_storage_partition.h

Issue 258513002: Introduce WorkerStoragePartitionId and use it in SharedWorkerInstance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hold WorkerStoragePartition in SharedWorkerMessageFilter Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 partition and its members are kept alive.
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_
OLDNEW
« no previous file with comments | « content/browser/shared_worker/shared_worker_service_impl.cc ('k') | content/browser/worker_host/worker_storage_partition.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698