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

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

Issue 2894063002: Expose UseCounter::Feature enum out of blink as WebFeature (Closed)
Patch Set: Initial check in Created 3 years, 7 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: third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.h b/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.h
index 62698815785163392f69ae8750acf06d941b7f36..97def8b18e24aa6db7f3c5dfdce2b6b8df0351a7 100644
--- a/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.h
+++ b/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.h
@@ -42,11 +42,19 @@ class CORE_EXPORT WorkerOrWorkletGlobalScope : public ExecutionContext {
virtual void Dispose();
// Called from UseCounter to record API use in this execution context.
+ // TODO(lunalu): Deprecate UseCounter::Feature by WebFeature.
void CountFeature(UseCounter::Feature);
+ void CountFeature(WebFeature feature) {
+ return CountFeature(static_cast<UseCounter::Feature>(feature));
+ }
// Called from UseCounter to record deprecated API use in this execution
// context.
+ // TODO(lunalu): Deprecate UseCounter::Feature by WebFeature.
void CountDeprecation(UseCounter::Feature);
+ void CountDeprecation(WebFeature feature) {
+ return CountDeprecation(static_cast<UseCounter::Feature>(feature));
+ }
// May return nullptr if this global scope is not threaded (i.e.,
// MainThreadWorkletGlobalScope) or after dispose() is called.

Powered by Google App Engine
This is Rietveld 408576698