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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
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_
« 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