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

Delta Between Two Patch Sets: src/plugin/PluginTabBase.h

Issue 6567422169448448: Issue 119 - Switch to injecting CSS for element hiding (Closed)
Left Patch Set: rebase Created Feb. 25, 2016, 5:38 p.m.
Right Patch Set: rename OnQuit Created Sept. 30, 2016, 3:25 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/plugin/PluginFilter.cpp ('k') | src/plugin/PluginTabBase.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 20 matching lines...) Expand all
31 CComAutoCriticalSection m_criticalSection; 31 CComAutoCriticalSection m_criticalSection;
32 CriticalSection m_csInject; 32 CriticalSection m_csInject;
33 33
34 std::wstring m_documentDomain; 34 std::wstring m_documentDomain;
35 std::wstring m_documentUrl; 35 std::wstring m_documentUrl;
36 CPluginUserSettings m_pluginUserSettings; 36 CPluginUserSettings m_pluginUserSettings;
37 bool m_isActivated; 37 bool m_isActivated;
38 38
39 std::thread m_thread; 39 std::thread m_thread;
40 std::atomic<bool> m_continueThreadRunning; 40 std::atomic<bool> m_continueThreadRunning;
41 CPluginDomTraverser* m_traverser; 41 std::unique_ptr<CPluginDomTraverser> m_traverser;
42 public: 42 public:
43 CPluginFilter m_filter; 43 class AsyncPluginFilter;
44 std::shared_ptr<AsyncPluginFilter> m_asyncPluginFilter;
44 private: 45 private:
45 void ThreadProc(); 46 void ThreadProc();
46 CComAutoCriticalSection m_criticalSectionCache; 47 CComAutoCriticalSection m_criticalSectionCache;
47 std::set<std::wstring> m_cacheFrames; 48 std::set<std::wstring> m_cacheFrames;
48 std::wstring m_cacheDomain; 49 std::wstring m_cacheDomain;
49 void InjectABP(IWebBrowser2* browser); 50 void InjectABP(IWebBrowser2* browser);
50 bool IsTraverserEnabled(); 51 bool IsTraverserEnabled();
51 bool IsCSSInjectionEnabled(); 52 bool IsCSSInjectionEnabled();
52 public: 53 public:
53 54
(...skipping 12 matching lines...) Expand all
66 void CacheFrame(const std::wstring& url); 67 void CacheFrame(const std::wstring& url);
67 bool IsFrameCached(const std::wstring& url); 68 bool IsFrameCached(const std::wstring& url);
68 void ClearFrameCache(const std::wstring& domain=L""); 69 void ClearFrameCache(const std::wstring& domain=L"");
69 /** 70 /**
70 * Is it possible to disable the current content of the present tab on a per-s ite basis? 71 * Is it possible to disable the current content of the present tab on a per-s ite basis?
71 */ 72 */
72 bool IsPossibleToDisableOnSite(); 73 bool IsPossibleToDisableOnSite();
73 }; 74 };
74 75
75 #endif // _PLUGIN_TAB_BASE_H_ 76 #endif // _PLUGIN_TAB_BASE_H_
LEFTRIGHT

Powered by Google App Engine
This is Rietveld