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

Unified Diff: Source/bindings/v8/custom/V8DedicatedWorkerGlobalScopeCustom.cpp

Issue 17648006: Rename WorkerContext to WorkerGlobalScope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 6 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/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());
}
« no previous file with comments | « Source/bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp ('k') | Source/bindings/v8/custom/V8MessageChannelCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698