Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginFilter.h

Issue 6567422169448448: Issue 119 - Switch to injecting CSS for element hiding (Closed)
Patch Set: rebase Created Dec. 1, 2015, 3:45 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginFilter.h
diff --git a/src/plugin/PluginFilter.h b/src/plugin/PluginFilter.h
index 7f1b9a1baf704e1813482266372b60705c3a8d61..302e31e8a82253f7cff5cef789c2f76464e8e608 100644
--- a/src/plugin/PluginFilter.h
+++ b/src/plugin/PluginFilter.h
@@ -139,6 +139,7 @@ private:
TFilterElementHideTagsNamed m_elementHideTagsId;
TFilterElementHideTagsNamed m_elementHideTagsClass;
TFilterElementHideTags m_elementHideTags;
+ std::vector<std::wstring> m_hideFilters;
void ClearFilters();
@@ -146,7 +147,7 @@ public:
CPluginFilter(const CString& dataPath = "");
- bool LoadHideFilters(std::vector<std::wstring> filters);
+ bool LoadHideFilters(const std::vector<std::wstring>& filters);
bool AddFilterElementHide(CString filter);
@@ -157,6 +158,7 @@ public:
bool ShouldBlock(const std::wstring& src, AdblockPlus::FilterEngine::ContentType contentType, const std::wstring& domain, bool addDebug=false) const;
HANDLE hideFiltersLoadedEvent;
+ const std::vector<std::wstring>& GetHideFilters() const;
};

Powered by Google App Engine
This is Rietveld