Index: Source/core/loader/ThreadableLoader.cpp |
diff --git a/Source/core/loader/ThreadableLoader.cpp b/Source/core/loader/ThreadableLoader.cpp |
index f766fe933f67dd4a76fea3d6bcc274b688562888..73a8a74b099fa212a02c40d15d669ddf29f9d925 100644 |
--- a/Source/core/loader/ThreadableLoader.cpp |
+++ b/Source/core/loader/ThreadableLoader.cpp |
@@ -35,7 +35,7 @@ |
#include "core/dom/ScriptExecutionContext.h" |
#include "core/loader/DocumentThreadableLoader.h" |
#include "core/loader/WorkerThreadableLoader.h" |
-#include "core/workers/WorkerContext.h" |
+#include "core/workers/WorkerGlobalScope.h" |
#include "core/workers/WorkerRunLoop.h" |
namespace WebCore { |
@@ -45,8 +45,8 @@ PassRefPtr<ThreadableLoader> ThreadableLoader::create(ScriptExecutionContext* co |
ASSERT(client); |
ASSERT(context); |
- if (context->isWorkerContext()) |
- return WorkerThreadableLoader::create(static_cast<WorkerContext*>(context), client, WorkerRunLoop::defaultMode(), request, options); |
+ if (context->isWorkerGlobalScope()) |
+ return WorkerThreadableLoader::create(static_cast<WorkerGlobalScope*>(context), client, WorkerRunLoop::defaultMode(), request, options); |
return DocumentThreadableLoader::create(toDocument(context), client, request, options); |
} |
@@ -55,8 +55,8 @@ void ThreadableLoader::loadResourceSynchronously(ScriptExecutionContext* context |
{ |
ASSERT(context); |
- if (context->isWorkerContext()) { |
- WorkerThreadableLoader::loadResourceSynchronously(static_cast<WorkerContext*>(context), request, client, options); |
+ if (context->isWorkerGlobalScope()) { |
+ WorkerThreadableLoader::loadResourceSynchronously(static_cast<WorkerGlobalScope*>(context), request, client, options); |
return; |
} |