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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.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/workers/WorkerGlobalScope.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
index 81eaca561bc09ff083e0fa0c9d6ac9cca6338d4d..a582d4489cbeebea5007b8040f55c7845b55d993 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) final;
+ void countDeprecation(UseCounter::Feature) final;
WorkerThread* thread() const final { return m_thread; }
void exceptionUnhandled(int exceptionId);
@@ -192,8 +190,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