WebCompiledContentRuleList.h [plain text]
#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
#include "WebCompiledContentRuleListData.h"
#include <WebCore/CompiledContentExtension.h>
#include <WebCore/ContentExtensionCompiler.h>
namespace WebKit {
class WebCompiledContentRuleList final : public WebCore::ContentExtensions::CompiledContentExtension {
public:
static Ref<WebCompiledContentRuleList> create(WebCompiledContentRuleListData&&);
virtual ~WebCompiledContentRuleList();
const WebCompiledContentRuleListData& data() const { return m_data; }
private:
WebCompiledContentRuleList(WebCompiledContentRuleListData&&);
const WebCore::ContentExtensions::DFABytecode* filtersWithoutConditionsBytecode() const final;
unsigned filtersWithoutConditionsBytecodeLength() const final;
const WebCore::ContentExtensions::DFABytecode* filtersWithConditionsBytecode() const final;
unsigned filtersWithConditionsBytecodeLength() const final;
const WebCore::ContentExtensions::DFABytecode* topURLFiltersBytecode() const final;
unsigned topURLFiltersBytecodeLength() const final;
bool conditionsApplyOnlyToDomain() const final;
const WebCore::ContentExtensions::SerializedActionByte* actions() const final;
unsigned actionsLength() const final;
WebCompiledContentRuleListData m_data;
};
}
#endif // ENABLE(CONTENT_EXTENSIONS)