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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.h

Issue 2535093003: Worker: Connect UseCounter to workers and worklets (Closed)
Patch Set: 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/workers/WorkerGlobalScope.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
index ec2c76f9e66c4e0df80affad5ea26fdd45b5c294..cc62f9f6ffb11ff3ed765ea0e845cc153b55104f 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
@@ -37,7 +37,6 @@
#include "core/fetch/CachedMetadataHandler.h"
#include "core/frame/DOMTimerCoordinator.h"
#include "core/frame/DOMWindowBase64.h"
-#include "core/frame/UseCounter.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/workers/WorkerEventQueue.h"
#include "core/workers/WorkerOrWorkletGlobalScope.h"
@@ -71,9 +70,6 @@ class CORE_EXPORT WorkerGlobalScope : public EventTargetWithInlineData,
~WorkerGlobalScope() override;
- virtual void countFeature(UseCounter::Feature) const;
- virtual void countDeprecation(UseCounter::Feature) const;
-
// Returns null if caching is not supported.
virtual CachedMetadataHandler* createWorkerScriptCachedMetadataHandler(
const KURL& scriptURL,
@@ -86,6 +82,8 @@ class CORE_EXPORT WorkerGlobalScope : public EventTargetWithInlineData,
// WorkerOrWorkletGlobalScope
bool isClosing() const final { return m_closing; }
virtual void dispose();
+ void countFeature(UseCounter::Feature) const final;
+ void countDeprecation(UseCounter::Feature) const final;
WorkerThread* thread() const final { return m_thread; }
void exceptionUnhandled(int exceptionId);
@@ -191,8 +189,6 @@ class CORE_EXPORT WorkerGlobalScope : public EventTargetWithInlineData,
mutable Member<WorkerLocation> m_location;
mutable Member<WorkerNavigator> m_navigator;
- mutable BitVector m_deprecationWarningBits;
-
Member<WorkerOrWorkletScriptController> m_scriptController;
WorkerThread* m_thread;

Powered by Google App Engine
This is Rietveld 408576698