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

Unified Diff: src/plugin/PluginTabBase.h

Issue 6567422169448448: Issue 119 - Switch to injecting CSS for element hiding (Closed)
Patch Set: rebase, improve memory handling (OnQuit) and improve code organizing Created April 27, 2016, 1:10 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/PluginTabBase.h
diff --git a/src/plugin/PluginTabBase.h b/src/plugin/PluginTabBase.h
index d48e59d5071c9706396d7a3a2ae3856b74077fe2..4c7d0dcbf276cfbe7131c1d94ce3156bc882b69e 100644
--- a/src/plugin/PluginTabBase.h
+++ b/src/plugin/PluginTabBase.h
@@ -38,15 +38,18 @@ class CPluginTab
std::thread m_thread;
std::atomic<bool> m_continueThreadRunning;
- CPluginDomTraverser* m_traverser;
+ std::unique_ptr<CPluginDomTraverser> m_traverser;
public:
- CPluginFilter m_filter;
+ class AsyncPluginFilter;
+ std::shared_ptr<AsyncPluginFilter> m_asyncPluginFilter;
private:
void ThreadProc();
CComAutoCriticalSection m_criticalSectionCache;
std::set<std::wstring> m_cacheFrames;
std::wstring m_cacheDomain;
void InjectABP(IWebBrowser2* browser);
+ bool IsTraverserEnabled();
+ bool IsCSSInjectionEnabled();
public:
CPluginTab();

Powered by Google App Engine
This is Rietveld