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

Unified Diff: third_party/WebKit/Source/core/dom/MessagePort.cpp

Issue 2691333002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/core/dom/MessagePort.cpp
diff --git a/third_party/WebKit/Source/core/dom/MessagePort.cpp b/third_party/WebKit/Source/core/dom/MessagePort.cpp
index ca49716c767e71823f1a2477ee953478abfce931..136192f9601fdaf82bf4ae1c2d594d0763460335 100644
--- a/third_party/WebKit/Source/core/dom/MessagePort.cpp
+++ b/third_party/WebKit/Source/core/dom/MessagePort.cpp
@@ -26,7 +26,9 @@
#include "core/dom/MessagePort.h"
+#include <memory>
#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/ScriptState.h"
#include "bindings/core/v8/SerializedScriptValue.h"
#include "bindings/core/v8/SerializedScriptValueFactory.h"
#include "core/dom/ExceptionCode.h"
@@ -40,7 +42,6 @@
#include "wtf/Functional.h"
#include "wtf/PtrUtil.h"
#include "wtf/text/AtomicString.h"
-#include <memory>
namespace blink {
@@ -57,7 +58,7 @@ MessagePort::~MessagePort() {
DCHECK(!m_started || !isEntangled());
}
-void MessagePort::postMessage(ExecutionContext* context,
+void MessagePort::postMessage(ScriptState* scriptState,
PassRefPtr<SerializedScriptValue> message,
const MessagePortArray& ports,
ExceptionState& exceptionState) {
@@ -76,7 +77,8 @@ void MessagePort::postMessage(ExecutionContext* context,
}
}
std::unique_ptr<MessagePortChannelArray> channels =
- MessagePort::disentanglePorts(context, ports, exceptionState);
+ MessagePort::disentanglePorts(scriptState->getExecutionContext(), ports,
+ exceptionState);
if (exceptionState.hadException())
return;
« no previous file with comments | « third_party/WebKit/Source/core/dom/MessagePort.h ('k') | third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698