OLD | NEW |
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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 void Init() { CPluginDomTraverserCacheBase::Init(); m_isHidden = false; } | 36 void Init() { CPluginDomTraverserCacheBase::Init(); m_isHidden = false; } |
37 }; | 37 }; |
38 | 38 |
39 | 39 |
40 class CPluginDomTraverser : public CPluginDomTraverserBase<CPluginDomTraverserCa
che> | 40 class CPluginDomTraverser : public CPluginDomTraverserBase<CPluginDomTraverserCa
che> |
41 { | 41 { |
42 | 42 |
43 public: | 43 public: |
44 | 44 |
45 CPluginDomTraverser(CPluginTab* tab); | 45 explicit CPluginDomTraverser(const PluginFilterPtr& pluginFilter); |
46 | 46 |
47 protected: | 47 protected: |
48 | 48 |
49 bool OnIFrame(IHTMLElement* pEl, const std::wstring& url, const std::wstring&
indent); | 49 bool OnIFrame(IHTMLElement* pEl, const std::wstring& url, const std::wstring&
indent); |
50 bool OnElement(IHTMLElement* pEl, const std::wstring& tag, CPluginDomTraverser
Cache* cache, bool isDebug, const std::wstring& indent); | 50 bool OnElement(IHTMLElement* pEl, const std::wstring& tag, CPluginDomTraverser
Cache* cache, bool isDebug, const std::wstring& indent); |
51 | 51 |
52 bool IsEnabled(); | 52 bool IsEnabled(); |
53 | 53 |
54 void HideElement(IHTMLElement* pEl, const std::wstring& type, const std::wstri
ng& url, bool isDebug, const std::wstring& indent); | 54 void HideElement(IHTMLElement* pEl, const std::wstring& type, const std::wstri
ng& url, bool isDebug, const std::wstring& indent); |
55 | 55 |
56 }; | 56 }; |
57 | 57 |
58 | 58 |
59 #endif // _ADBLOCK_PLUS_DOM_TRAVERSER_H_ | 59 #endif // _ADBLOCK_PLUS_DOM_TRAVERSER_H_ |
OLD | NEW |