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

Side by Side Diff: src/plugin/PluginTabBase.h

Issue 6567422169448448: Issue 119 - Switch to injecting CSS for element hiding (Closed)
Patch Set: rebase Created Dec. 1, 2015, 11:29 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/plugin/PluginFilter.cpp ('k') | src/plugin/PluginTabBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 CPluginDomTraverser* m_traverser; 52 CPluginDomTraverser* m_traverser;
53 public: 53 public:
54 std::auto_ptr<CPluginFilter> m_filter; 54 std::auto_ptr<CPluginFilter> m_filter;
55 private: 55 private:
56 void ThreadProc(); 56 void ThreadProc();
57 CComAutoCriticalSection m_criticalSectionCache; 57 CComAutoCriticalSection m_criticalSectionCache;
58 std::set<std::wstring> m_cacheFrames; 58 std::set<std::wstring> m_cacheFrames;
59 std::wstring m_cacheDomain; 59 std::wstring m_cacheDomain;
60 void SetDocumentUrl(const std::wstring& url); 60 void SetDocumentUrl(const std::wstring& url);
61 void InjectABP(IWebBrowser2* browser); 61 void InjectABP(IWebBrowser2* browser);
62 bool IsTraverserEnabled();
63 bool IsCSSInjectionEnabled();
62 public: 64 public:
63 65
64 CPluginTabBase(CPluginClass* plugin); 66 CPluginTabBase(CPluginClass* plugin);
65 ~CPluginTabBase(); 67 ~CPluginTabBase();
66 68
67 std::wstring GetDocumentDomain(); 69 std::wstring GetDocumentDomain();
68 std::wstring GetDocumentUrl(); 70 std::wstring GetDocumentUrl();
69 virtual void OnActivate(); 71 virtual void OnActivate();
70 virtual void OnUpdate(); 72 virtual void OnUpdate();
71 virtual void OnNavigate(const std::wstring& url); 73 virtual void OnNavigate(const std::wstring& url);
(...skipping 15 matching lines...) Expand all
87 { 89 {
88 90
89 public: 91 public:
90 CPluginTab(CPluginClass* plugin) : CPluginTabBase(plugin) {}; 92 CPluginTab(CPluginClass* plugin) : CPluginTabBase(plugin) {};
91 ~CPluginTab() {}; 93 ~CPluginTab() {};
92 }; 94 };
93 95
94 96
95 97
96 #endif // _PLUGIN_TAB_BASE_H_ 98 #endif // _PLUGIN_TAB_BASE_H_
OLDNEW
« no previous file with comments | « src/plugin/PluginFilter.cpp ('k') | src/plugin/PluginTabBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld