void WebProcess::handleInjectedBundleMessage(const String& messageName, const UserData& messageBody) { InjectedBundle* injectedBundle = WebProcess::singleton().injectedBundle(); if (!injectedBundle) return; injectedBundle->didReceiveMessage(messageName, transformHandlesToObjects(messageBody.object()).get()); }
void WebProcessPool::handleSynchronousMessage(IPC::Connection& connection, const String& messageName, const UserData& messageBody, UserData& returnUserData) { auto* webProcessProxy = WebProcessProxy::fromConnection(&connection); if (!webProcessProxy) return; RefPtr<API::Object> returnData; m_injectedBundleClient.didReceiveSynchronousMessageFromInjectedBundle(this, messageName, webProcessProxy->transformHandlesToObjects(messageBody.object()).get(), returnData); returnUserData = UserData(webProcessProxy->transformObjectsToHandles(returnData.get())); }
void WebConnection::handleMessage(const String& messageName, const UserData& messageBody) { m_client.didReceiveMessage(this, messageName, transformHandlesToObjects(messageBody.object()).get()); }