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

Unified Diff: third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.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/ThreadedMessagingProxyBase.h
diff --git a/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.h b/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.h
index ed21b16a9ac067aed4eec52b8a1ec64c7a23cec4..77ee970e017e5fa8a9be6ca405a5877caea29e80 100644
--- a/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.h
+++ b/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.h
@@ -32,8 +32,15 @@ class CORE_EXPORT ThreadedMessagingProxyBase
// initially created it. This object could either be a Worker or a Worklet.
virtual void ParentObjectDestroyed();
+ // TODO(lunalu): Deprecate UseCounter::Feature by WebFeature.
void CountFeature(UseCounter::Feature);
+ void CountFeature(WebFeature feature) {
+ return CountFeature(static_cast<UseCounter::Feature>(feature));
+ }
void CountDeprecation(UseCounter::Feature);
+ void CountDeprecation(WebFeature feature) {
+ return CountDeprecation(static_cast<UseCounter::Feature>(feature));
+ }
void ReportConsoleMessage(MessageSource,
MessageLevel,

Powered by Google App Engine
This is Rietveld 408576698