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: Created Dec. 10, 2014, 5:12 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 61d3cd7d9e0e5b4e33fdfbf09cd318c1c7442533..1bf4bfcb3fbfaf2200c3940da3ae367161eb340a 100644
--- a/src/plugin/PluginFilter.h
+++ b/src/plugin/PluginFilter.h
@@ -150,6 +150,7 @@ private:
TFilterMap m_filterMap[2][2];
TFilterMapDefault m_filterMapDefault[2];
+ std::vector<std::wstring> m_hideFilters;
void ClearFilters();
@@ -157,7 +158,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);
@@ -168,6 +169,7 @@ public:
bool ShouldBlock(const std::wstring& src, int contentType, const std::wstring& domain, bool addDebug=false) const;
HANDLE hideFiltersLoadedEvent;
+ const std::vector<std::wstring>& getHideFilters() const;
Oleksandr 2015/02/04 20:59:57 GetHideFilters() to be consistent?
sergei 2015/04/13 08:06:58 fixed
};

Powered by Google App Engine
This is Rietveld