summaryrefslogtreecommitdiffstats
path: root/content/browser/shared_worker/shared_worker_instance.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/shared_worker/shared_worker_instance.cc')
-rw-r--r--content/browser/shared_worker/shared_worker_instance.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/content/browser/shared_worker/shared_worker_instance.cc b/content/browser/shared_worker/shared_worker_instance.cc
index ea8e02d..caa3876 100644
--- a/content/browser/shared_worker/shared_worker_instance.cc
+++ b/content/browser/shared_worker/shared_worker_instance.cc
@@ -14,13 +14,15 @@ SharedWorkerInstance::SharedWorkerInstance(
const base::string16& content_security_policy,
blink::WebContentSecurityPolicyType security_policy_type,
ResourceContext* resource_context,
- const WorkerStoragePartitionId& partition_id)
+ const WorkerStoragePartitionId& partition_id,
+ blink::WebSharedWorkerCreationContextType creation_context_type)
: url_(url),
name_(name),
content_security_policy_(content_security_policy),
security_policy_type_(security_policy_type),
resource_context_(resource_context),
- partition_id_(partition_id) {
+ partition_id_(partition_id),
+ creation_context_type_(creation_context_type) {
DCHECK(resource_context_);
}
@@ -30,8 +32,8 @@ SharedWorkerInstance::SharedWorkerInstance(const SharedWorkerInstance& other)
content_security_policy_(other.content_security_policy_),
security_policy_type_(other.security_policy_type_),
resource_context_(other.resource_context_),
- partition_id_(other.partition_id_) {
-}
+ partition_id_(other.partition_id_),
+ creation_context_type_(other.creation_context_type_) {}
SharedWorkerInstance::~SharedWorkerInstance() {}