void WebUserContentControllerProxy::addUserContentExtension(API::UserContentExtension& userContentExtension)
{
    m_userContentExtensions.set(userContentExtension.name(), &userContentExtension);

    auto pair = std::make_pair(userContentExtension.name(), userContentExtension.compiledExtension().data());

    for (WebProcessProxy* process : m_processes)
        process->connection()->send(Messages::WebUserContentController::AddUserContentExtensions({ pair }), m_identifier);
}
예제 #2
0
void WebPageGroup::addUserContentExtension(const API::UserContentExtension& userContentExtension)
{
    m_data.userContentExtensions.set(userContentExtension.name(), userContentExtension.compiledExtension().data());
    sendToAllProcessesInGroup(Messages::WebPageGroupProxy::AddUserContentExtension(userContentExtension.name(), userContentExtension.compiledExtension().data()), m_data.pageGroupID);
}