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

Unified Diff: content/browser/shared_worker/shared_worker_instance.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 side-by-side diff with in-line comments
Download patch
Index: content/browser/shared_worker/shared_worker_instance.h
diff --git a/content/browser/shared_worker/shared_worker_instance.h b/content/browser/shared_worker/shared_worker_instance.h
index 9d4e303d120d6b416e7e79da1b00c49350bc550f..e68c9a4f39148b23f0915fde490470ff2946b709 100644
--- a/content/browser/shared_worker/shared_worker_instance.h
+++ b/content/browser/shared_worker/shared_worker_instance.h
@@ -25,7 +25,7 @@ class CONTENT_EXPORT SharedWorkerInstance {
const base::string16& content_security_policy,
blink::WebContentSecurityPolicyType security_policy_type,
ResourceContext* resource_context,
- const WorkerStoragePartition& partition);
+ const WorkerStoragePartitionId& partition_id);
SharedWorkerInstance(const SharedWorkerInstance& other);
~SharedWorkerInstance();
@@ -35,11 +35,10 @@ class CONTENT_EXPORT SharedWorkerInstance {
// a) the names are non-empty and equal.
// -or-
// b) the names are both empty, and the urls are equal.
- bool Matches(
- const GURL& url,
- const base::string16& name,
- const WorkerStoragePartition& partition,
- ResourceContext* resource_context) const;
+ bool Matches(const GURL& url,
+ const base::string16& name,
+ const WorkerStoragePartitionId& partition,
+ ResourceContext* resource_context) const;
bool Matches(const SharedWorkerInstance& other) const;
// Accessors.
@@ -54,9 +53,7 @@ class CONTENT_EXPORT SharedWorkerInstance {
ResourceContext* resource_context() const {
return resource_context_;
}
- const WorkerStoragePartition& partition() const {
- return partition_;
- }
+ const WorkerStoragePartitionId& partition_id() const { return partition_id_; }
private:
const GURL url_;
@@ -64,7 +61,7 @@ class CONTENT_EXPORT SharedWorkerInstance {
const base::string16 content_security_policy_;
const blink::WebContentSecurityPolicyType security_policy_type_;
ResourceContext* const resource_context_;
- const WorkerStoragePartition partition_;
+ const WorkerStoragePartitionId partition_id_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698