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

Unified Diff: third_party/WebKit/Source/core/workers/ThreadedObjectProxyBase.cpp

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/ThreadedObjectProxyBase.cpp
diff --git a/third_party/WebKit/Source/core/workers/ThreadedObjectProxyBase.cpp b/third_party/WebKit/Source/core/workers/ThreadedObjectProxyBase.cpp
index 44eb9e52380ac100cdd8d026685bf260eece1a5f..e5596a2ce6d49676330f9ae9a4b679339a9decc4 100644
--- a/third_party/WebKit/Source/core/workers/ThreadedObjectProxyBase.cpp
+++ b/third_party/WebKit/Source/core/workers/ThreadedObjectProxyBase.cpp
@@ -16,20 +16,30 @@
namespace blink {
+// TODO(lunalu): Remove cast of CrossThreadBind once UseCounter::Feature is
+// deprecated.
void ThreadedObjectProxyBase::CountFeature(UseCounter::Feature feature) {
GetParentFrameTaskRunners()
->Get(TaskType::kUnspecedTimer)
- ->PostTask(BLINK_FROM_HERE,
- CrossThreadBind(&ThreadedMessagingProxyBase::CountFeature,
- MessagingProxyWeakPtr(), feature));
+ ->PostTask(
+ BLINK_FROM_HERE,
+ CrossThreadBind(static_cast<void (ThreadedMessagingProxyBase::*)(
+ UseCounter::Feature)>(
+ &ThreadedMessagingProxyBase::CountFeature),
+ MessagingProxyWeakPtr(), feature));
}
+// TODO(lunalu): Remove cast of CrossThreadBind once UseCounter::Feature is
+// deprecated.
void ThreadedObjectProxyBase::CountDeprecation(UseCounter::Feature feature) {
GetParentFrameTaskRunners()
->Get(TaskType::kUnspecedTimer)
- ->PostTask(BLINK_FROM_HERE,
- CrossThreadBind(&ThreadedMessagingProxyBase::CountDeprecation,
- MessagingProxyWeakPtr(), feature));
+ ->PostTask(
+ BLINK_FROM_HERE,
+ CrossThreadBind(static_cast<void (ThreadedMessagingProxyBase::*)(
+ UseCounter::Feature)>(
+ &ThreadedMessagingProxyBase::CountDeprecation),
+ MessagingProxyWeakPtr(), feature));
}
void ThreadedObjectProxyBase::ReportConsoleMessage(MessageSource source,

Powered by Google App Engine
This is Rietveld 408576698