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

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

Issue 177073004: Oilpan: move core/workers to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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: Source/core/workers/WorkerGlobalScope.cpp
diff --git a/Source/core/workers/WorkerGlobalScope.cpp b/Source/core/workers/WorkerGlobalScope.cpp
index a517c8704513d3fd0cbcb0632728b7eb664c560b..36ccdf0a9b42d0ba99a9ecc9cc6e964f7b74ad73 100644
--- a/Source/core/workers/WorkerGlobalScope.cpp
+++ b/Source/core/workers/WorkerGlobalScope.cpp
@@ -56,6 +56,8 @@
namespace WebCore {
+DEFINE_GC_INFO(WorkerGlobalScope);
+
class CloseWorkerGlobalScopeTask : public ExecutionContextTask {
public:
static PassOwnPtr<CloseWorkerGlobalScopeTask> create()
@@ -205,7 +207,7 @@ void WorkerGlobalScope::importScripts(const Vector<String>& urls, ExceptionState
Vector<KURL>::const_iterator end = completedURLs.end();
for (Vector<KURL>::const_iterator it = completedURLs.begin(); it != end; ++it) {
- RefPtr<WorkerScriptLoader> scriptLoader(WorkerScriptLoader::create());
+ RefPtrWillBeRawPtr<WorkerScriptLoader> scriptLoader(WorkerScriptLoader::create());
scriptLoader->setTargetType(ResourceRequest::TargetIsScript);
scriptLoader->loadSynchronously(executionContext(), *it, AllowCrossOriginRequests);
@@ -280,4 +282,11 @@ WorkerEventQueue* WorkerGlobalScope::eventQueue() const
return m_eventQueue.get();
}
+void WorkerGlobalScope::trace(Visitor* visitor)
+{
+ visitor->trace(m_console);
+ visitor->trace(m_location);
+ visitor->trace(m_navigator);
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698