Chromium Code Reviews

Unified Diff: Source/modules/performance/WorkerPerformance.h

Issue 157213002: Move performance module/ to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/modules/performance/WorkerPerformance.h
diff --git a/Source/modules/performance/WorkerPerformance.h b/Source/modules/performance/WorkerPerformance.h
index 3f450403f7bc395ae3a0c12f8f9f290adb99208c..37d3cada482ba3211377135e57f5c40d77d6e5ab 100644
--- a/Source/modules/performance/WorkerPerformance.h
+++ b/Source/modules/performance/WorkerPerformance.h
@@ -41,13 +41,16 @@ namespace WebCore {
class ExecutionContext;
-class WorkerPerformance : public ScriptWrappable, public RefCounted<WorkerPerformance> {
+class WorkerPerformance : public ScriptWrappable, public RefCountedWillBeGarbageCollectedFinalized<WorkerPerformance> {
haraken 2014/02/07 05:49:46 Mads: It's a shame that we have to use GarbageColl
haraken 2014/02/07 05:56:50 Also I noticed that RefCountedWillBeGarbageCollect
zerny-chromium 2014/02/07 05:58:04 I'll let Mads answer that, but on the branch we ac
tkent 2014/02/07 06:07:55 I didn't know this rule. Do we have a documentati
Mads Ager (chromium) 2014/02/07 09:28:34 That is indeed a shame. We should see if we can co
+ DECLARE_GC_INFO;
public:
- static PassRefPtr<WorkerPerformance> create() { return adoptRef(new WorkerPerformance()); }
+ static PassRefPtrWillBeRawPtr<WorkerPerformance> create() { return adoptRefWillBeNoop(new WorkerPerformance()); }
~WorkerPerformance();
double now(ExecutionContext*) const;
+ void trace(Visitor*) { }
+
private:
WorkerPerformance();
};
« no previous file with comments | « Source/modules/performance/WorkerGlobalScopePerformance.h ('k') | Source/modules/performance/WorkerPerformance.cpp » ('j') | no next file with comments »

Powered by Google App Engine