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

Unified Diff: content/browser/shared_worker/shared_worker_instance.h

Issue 223123003: Make DevTools support for the embedded SharedWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed version Created 6 years, 9 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 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_; }
« no previous file with comments | « content/browser/shared_worker/shared_worker_host.cc ('k') | content/browser/shared_worker/shared_worker_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698