| 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 0d613167d462d6b524b3725bce33cc1c8745c572..9d4e303d120d6b416e7e79da1b00c49350bc550f 100644
|
| --- a/content/browser/shared_worker/shared_worker_instance.h
|
| +++ b/content/browser/shared_worker/shared_worker_instance.h
|
| @@ -16,6 +16,8 @@
|
| namespace content {
|
| class ResourceContext;
|
|
|
| +// SharedWorkerInstance is copyable value-type data type. It could be passed to
|
| +// the UI thread and be used for comparison in SharedWorkerDevToolsManager.
|
| class CONTENT_EXPORT SharedWorkerInstance {
|
| public:
|
| SharedWorkerInstance(const GURL& url,
|
| @@ -24,6 +26,7 @@ class CONTENT_EXPORT SharedWorkerInstance {
|
| blink::WebContentSecurityPolicyType security_policy_type,
|
| ResourceContext* resource_context,
|
| const WorkerStoragePartition& partition);
|
| + SharedWorkerInstance(const SharedWorkerInstance& other);
|
| ~SharedWorkerInstance();
|
|
|
| // Checks if this SharedWorkerInstance matches the passed url/name params
|
| @@ -37,6 +40,7 @@ class CONTENT_EXPORT SharedWorkerInstance {
|
| const base::string16& name,
|
| const WorkerStoragePartition& partition,
|
| ResourceContext* resource_context) const;
|
| + bool Matches(const SharedWorkerInstance& other) const;
|
|
|
| // Accessors.
|
| const GURL& url() const { return url_; }
|
|
|