Index: Source/bindings/v8/custom/V8DedicatedWorkerGlobalScopeCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp b/Source/bindings/v8/custom/V8DedicatedWorkerGlobalScopeCustom.cpp |
similarity index 84% |
rename from Source/bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp |
rename to Source/bindings/v8/custom/V8DedicatedWorkerGlobalScopeCustom.cpp |
index 4c0070c40805db8d97b038b45c7d35dd9b473f1f..677d7bea957b9f8c85e34e79ce27a7c81351b17d 100644 |
--- a/Source/bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp |
+++ b/Source/bindings/v8/custom/V8DedicatedWorkerGlobalScopeCustom.cpp |
@@ -30,19 +30,19 @@ |
#include "config.h" |
-#include "V8DedicatedWorkerContext.h" |
+#include "V8DedicatedWorkerGlobalScope.h" |
#include "bindings/v8/V8Binding.h" |
#include "bindings/v8/V8Utilities.h" |
-#include "bindings/v8/V8WorkerContextEventListener.h" |
-#include "core/workers/DedicatedWorkerContext.h" |
+#include "bindings/v8/V8WorkerGlobalScopeEventListener.h" |
+#include "core/workers/DedicatedWorkerGlobalScope.h" |
#include "wtf/ArrayBuffer.h" |
namespace WebCore { |
-void V8DedicatedWorkerContext::postMessageMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args) |
+void V8DedicatedWorkerGlobalScope::postMessageMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args) |
{ |
- DedicatedWorkerContext* workerContext = V8DedicatedWorkerContext::toNative(args.Holder()); |
+ DedicatedWorkerGlobalScope* workerGlobalScope = V8DedicatedWorkerGlobalScope::toNative(args.Holder()); |
MessagePortArray ports; |
ArrayBufferArray arrayBuffers; |
if (args.Length() > 1) { |
@@ -59,7 +59,7 @@ void V8DedicatedWorkerContext::postMessageMethodCustom(const v8::FunctionCallbac |
if (didThrow) |
return; |
ExceptionCode ec = 0; |
- workerContext->postMessage(message.release(), &ports, ec); |
+ workerGlobalScope->postMessage(message.release(), &ports, ec); |
setDOMException(ec, args.GetIsolate()); |
} |