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

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

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 2 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/Worker.h ('k') | Source/core/workers/WorkerMessagingProxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/Worker.cpp
diff --git a/Source/core/workers/Worker.cpp b/Source/core/workers/Worker.cpp
index 0188d24e13ab2cd8928a96595b64304ba918f5e5..56c83c0cd3cf2b4cdd68a975804737dc87aa66a2 100644
--- a/Source/core/workers/Worker.cpp
+++ b/Source/core/workers/Worker.cpp
@@ -43,7 +43,7 @@
namespace blink {
-inline Worker::Worker(ExecutionContext* context)
+Worker::Worker(ExecutionContext* context)
: AbstractWorker(context)
, m_contextProxy(nullptr)
{
@@ -141,4 +141,15 @@ void Worker::trace(Visitor* visitor)
AbstractWorker::trace(visitor);
}
+void Worker::initScriptLoader(ExecutionContext* context, const KURL& scriptURL)
+{
+ m_scriptLoader = WorkerScriptLoader::create();
+ m_scriptLoader->loadAsynchronously(*context, scriptURL, DenyCrossOriginRequests, this);
+}
+
+void Worker::setContextProxy(WorkerGlobalScopeProxy* proxy)
+{
+ m_contextProxy = proxy;
+}
+
} // namespace blink
« no previous file with comments | « Source/core/workers/Worker.h ('k') | Source/core/workers/WorkerMessagingProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698