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

Unified Diff: third_party/WebKit/Source/core/dom/ExecutionContext.h

Issue 2535093003: Worker: Connect UseCounter to workers and worklets (Closed)
Patch Set: remove 'const' qualifiers Created 4 years 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: third_party/WebKit/Source/core/dom/ExecutionContext.h
diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.h b/third_party/WebKit/Source/core/dom/ExecutionContext.h
index 899b3d2b5709923a82e47ba96345826ddc0fa5db..a972da5e6203a8df0dbe4b4c44c32c6d30919ab9 100644
--- a/third_party/WebKit/Source/core/dom/ExecutionContext.h
+++ b/third_party/WebKit/Source/core/dom/ExecutionContext.h
@@ -71,6 +71,7 @@ class CORE_EXPORT ExecutionContext : public ContextLifecycleNotifier,
};
virtual bool isDocument() const { return false; }
+ virtual bool isWorkerOrWorkletGlobalScope() const { return false; }
virtual bool isWorkerGlobalScope() const { return false; }
virtual bool isWorkletGlobalScope() const { return false; }
virtual bool isMainThreadWorkletGlobalScope() const { return false; }

Powered by Google App Engine
This is Rietveld 408576698