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 Feb. 25, 2016, 5:38 p.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-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 29 matching lines...) Expand all
40 std::atomic<bool> m_continueThreadRunning; 40 std::atomic<bool> m_continueThreadRunning;
41 CPluginDomTraverser* m_traverser; 41 CPluginDomTraverser* m_traverser;
42 public: 42 public:
43 CPluginFilter m_filter; 43 CPluginFilter m_filter;
44 private: 44 private:
45 void ThreadProc(); 45 void ThreadProc();
46 CComAutoCriticalSection m_criticalSectionCache; 46 CComAutoCriticalSection m_criticalSectionCache;
47 std::set<std::wstring> m_cacheFrames; 47 std::set<std::wstring> m_cacheFrames;
48 std::wstring m_cacheDomain; 48 std::wstring m_cacheDomain;
49 void InjectABP(IWebBrowser2* browser); 49 void InjectABP(IWebBrowser2* browser);
50 bool IsTraverserEnabled();
51 bool IsCSSInjectionEnabled();
50 public: 52 public:
51 53
52 CPluginTab(); 54 CPluginTab();
53 ~CPluginTab(); 55 ~CPluginTab();
54 56
55 std::wstring GetDocumentDomain(); 57 std::wstring GetDocumentDomain();
56 void SetDocumentUrl(const std::wstring& url); 58 void SetDocumentUrl(const std::wstring& url);
57 std::wstring GetDocumentUrl(); 59 std::wstring GetDocumentUrl();
58 virtual void OnActivate(); 60 virtual void OnActivate();
59 virtual void OnUpdate(); 61 virtual void OnUpdate();
60 virtual void OnNavigate(const std::wstring& url); 62 virtual void OnNavigate(const std::wstring& url);
61 virtual void OnDownloadComplete(IWebBrowser2* browser); 63 virtual void OnDownloadComplete(IWebBrowser2* browser);
62 virtual void OnDocumentComplete(IWebBrowser2* browser, const std::wstring& url , bool isDocumentBrowser); 64 virtual void OnDocumentComplete(IWebBrowser2* browser, const std::wstring& url , bool isDocumentBrowser);
63 static DWORD WINAPI TabThreadProc(LPVOID pParam); 65 static DWORD WINAPI TabThreadProc(LPVOID pParam);
64 void CacheFrame(const std::wstring& url); 66 void CacheFrame(const std::wstring& url);
65 bool IsFrameCached(const std::wstring& url); 67 bool IsFrameCached(const std::wstring& url);
66 void ClearFrameCache(const std::wstring& domain=L""); 68 void ClearFrameCache(const std::wstring& domain=L"");
67 /** 69 /**
68 * Is it possible to disable the current content of the present tab on a per-s ite basis? 70 * Is it possible to disable the current content of the present tab on a per-s ite basis?
69 */ 71 */
70 bool IsPossibleToDisableOnSite(); 72 bool IsPossibleToDisableOnSite();
71 }; 73 };
72 74
73 #endif // _PLUGIN_TAB_BASE_H_ 75 #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