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

Unified Diff: Source/core/workers/SharedWorker.cpp

Issue 180743028: Oilpan: move Worker objects to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have SharedWorkerRepositoryClient use transition type(s) Created 6 years, 9 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/SharedWorker.h ('k') | Source/core/workers/SharedWorker.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/SharedWorker.cpp
diff --git a/Source/core/workers/SharedWorker.cpp b/Source/core/workers/SharedWorker.cpp
index 6f2f640ecedab5441b1a6cb202e6230265080a44..f548e9bff9706412b1c0e779e673ef73327dcec0 100644
--- a/Source/core/workers/SharedWorker.cpp
+++ b/Source/core/workers/SharedWorker.cpp
@@ -54,14 +54,14 @@ inline SharedWorker::SharedWorker(ExecutionContext* context)
ScriptWrappable::init(this);
}
-PassRefPtr<SharedWorker> SharedWorker::create(ExecutionContext* context, const String& url, const String& name, ExceptionState& exceptionState)
+PassRefPtrWillBeRawPtr<SharedWorker> SharedWorker::create(ExecutionContext* context, const String& url, const String& name, ExceptionState& exceptionState)
{
ASSERT(isMainThread());
ASSERT_WITH_SECURITY_IMPLICATION(context->isDocument());
UseCounter::count(context, UseCounter::SharedWorkerStart);
- RefPtr<SharedWorker> worker = adoptRef(new SharedWorker(context));
+ RefPtrWillBeRawPtr<SharedWorker> worker = adoptRefWillBeRefCountedGarbageCollected(new SharedWorker(context));
RefPtr<MessageChannel> channel = MessageChannel::create(context);
worker->m_port = channel->port1();
@@ -106,4 +106,9 @@ void SharedWorker::unsetPreventGC()
unsetPendingActivity(this);
}
+void SharedWorker::trace(Visitor* visitor)
+{
+ AbstractWorker::trace(visitor);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/workers/SharedWorker.h ('k') | Source/core/workers/SharedWorker.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698