| Left: | ||
| Right: |
| LEFT | RIGHT |
|---|---|
| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 std::wstring GetDocumentUrl(); | 68 std::wstring GetDocumentUrl(); |
| 69 virtual void OnActivate(); | 69 virtual void OnActivate(); |
| 70 virtual void OnUpdate(); | 70 virtual void OnUpdate(); |
| 71 virtual void OnNavigate(const std::wstring& url); | 71 virtual void OnNavigate(const std::wstring& url); |
| 72 virtual void OnDownloadComplete(IWebBrowser2* browser); | 72 virtual void OnDownloadComplete(IWebBrowser2* browser); |
| 73 virtual void OnDocumentComplete(IWebBrowser2* browser, const std::wstring& url , bool isDocumentBrowser); | 73 virtual void OnDocumentComplete(IWebBrowser2* browser, const std::wstring& url , bool isDocumentBrowser); |
| 74 static DWORD WINAPI TabThreadProc(LPVOID pParam); | 74 static DWORD WINAPI TabThreadProc(LPVOID pParam); |
| 75 void CacheFrame(const std::wstring& url); | 75 void CacheFrame(const std::wstring& url); |
| 76 bool IsFrameCached(const std::wstring& url); | 76 bool IsFrameCached(const std::wstring& url); |
| 77 void ClearFrameCache(const std::wstring& domain=L""); | 77 void ClearFrameCache(const std::wstring& domain=L""); |
| 78 /* | 78 /** |
| 79 * Is it possible to disable the current content on a per-site basis? | 79 * Is it possible to disable the current content of the present tab on a per-s ite basis? |
|
sergei
2015/12/08 20:20:19
This comment is unclear because it's not clear wha
Eric
2015/12/09 12:48:35
Tabs have current content displayed in the browser
| |
| 80 * | |
| 81 * ABP only intercepts protocols "http:" and "https:", | |
|
sergei
2015/12/08 20:20:19
I would rather move it into the method body becaus
Eric
2015/12/09 12:48:35
Done.
| |
| 82 * so it makes no sense to offer the user an option to block content from ot her protocols. | |
|
sergei
2015/12/08 20:20:19
I bit unusual formatting with two spaces gap.
Eric
2015/12/09 12:48:35
I rewrote this piece of the comment entirely.
| |
| 83 */ | 80 */ |
| 84 bool CanDisableOnSite(); | 81 bool IsPossibleToDisableOnSite(); |
| 85 }; | 82 }; |
| 86 | 83 |
| 87 /** | 84 /** |
| 88 * Temporary class used during refactoring. | 85 * Temporary class used during refactoring. |
| 89 * This is the definition previously in AdblockPlusTab.h | 86 * This is the definition previously in AdblockPlusTab.h |
| 90 * Defining this class during refactoring alleviates the need to rename CPluginT abBase in the first change set. | 87 * Defining this class during refactoring alleviates the need to rename CPluginT abBase in the first change set. |
| 91 */ | 88 */ |
| 92 class CPluginTab : public CPluginTabBase | 89 class CPluginTab : public CPluginTabBase |
| 93 { | 90 { |
| 94 | 91 |
| 95 public: | 92 public: |
| 96 CPluginTab(CPluginClass* plugin) : CPluginTabBase(plugin) {}; | 93 CPluginTab(CPluginClass* plugin) : CPluginTabBase(plugin) {}; |
| 97 ~CPluginTab() {}; | 94 ~CPluginTab() {}; |
| 98 }; | 95 }; |
| 99 | 96 |
| 100 | 97 |
| 101 | 98 |
| 102 #endif // _PLUGIN_TAB_BASE_H_ | 99 #endif // _PLUGIN_TAB_BASE_H_ |
| LEFT | RIGHT |