| 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
|
|
|