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

Unified Diff: Source/core/workers/WorkerClients.h

Issue 230083003: Oilpan: Move WorkerClients to the managed heap and trace its supplements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: CR comments and unbreak the non-oilpan build Created 6 years, 8 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
« no previous file with comments | « Source/core/workers/SharedWorkerGlobalScope.cpp ('k') | Source/core/workers/WorkerGlobalScope.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerClients.h
diff --git a/Source/core/workers/WorkerClients.h b/Source/core/workers/WorkerClients.h
index 8cc4aa2ff556722556cf841d9dcb7282a2c47319..7a09e2da8b1923838dd47ae1e484712332cf4701 100644
--- a/Source/core/workers/WorkerClients.h
+++ b/Source/core/workers/WorkerClients.h
@@ -39,16 +39,21 @@ namespace WebCore {
// This is created on the main thread, passed to the worker thread and
// attached to WorkerGlobalScope when it is created.
// This class can be used to provide "client" implementations to Workers.
-class WorkerClients : public Supplementable<WorkerClients> {
+class WorkerClients : public NoBaseWillBeGarbageCollectedFinalized<WorkerClients>, public Supplementable<WorkerClients> {
WTF_MAKE_NONCOPYABLE(WorkerClients);
public:
- static PassOwnPtr<WorkerClients> create()
+ static PassOwnPtrWillBeRawPtr<WorkerClients> create()
{
- return adoptPtr(new WorkerClients());
+ return adoptPtrWillBeNoop(new WorkerClients());
}
virtual ~WorkerClients() { }
+ virtual void trace(Visitor* visitor) OVERRIDE
+ {
+ Supplementable<WorkerClients>::trace(visitor);
+ }
+
private:
WorkerClients() { }
};
« no previous file with comments | « Source/core/workers/SharedWorkerGlobalScope.cpp ('k') | Source/core/workers/WorkerGlobalScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698