WebPageGroupProxy::WebPageGroupProxy(const WebPageGroupData& data) : m_data(data) , m_pageGroup(WebCore::PageGroup::pageGroup(m_data.identifer)) { for (size_t i = 0; i < data.userStyleSheets.size(); ++i) addUserStyleSheet(data.userStyleSheets[i]); for (size_t i = 0; i < data.userScripts.size(); ++i) addUserScript(data.userScripts[i]); }
WebPageGroupProxy::WebPageGroupProxy(const WebPageGroupData& data) : m_data(data) , m_pageGroup(WebCore::PageGroup::pageGroup(m_data.identifer)) { for (size_t i = 0; i < data.userStyleSheets.size(); ++i) addUserStyleSheet(data.userStyleSheets[i]); for (size_t i = 0; i < data.userScripts.size(); ++i) addUserScript(data.userScripts[i]); #if ENABLE(INDEXED_DATABASE) WebKeyValueStorageManager* keyValueStorageManager = WebProcess::shared().supplement<WebKeyValueStorageManager>(); m_pageGroup->groupSettings()->setIndexedDBDatabasePath(keyValueStorageManager->indexedDBDatabaseDirectory()); #endif }
WebPageGroupProxy::WebPageGroupProxy(const WebPageGroupData& data) : m_data(data) , m_pageGroup(WebCore::PageGroup::pageGroup(m_data.identifier)) { for (const auto& userStyleSheet : data.userStyleSheets) addUserStyleSheet(userStyleSheet); for (const auto& userScript : data.userScripts) addUserScript(userScript); #if ENABLE(CONTENT_EXTENSIONS) for (const auto& slot : data.userContentFilters) addUserContentFilter(slot.key, slot.value); #endif }