| Left: | ||
| Right: |
| 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-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? | |
|
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 */ | |
| 84 bool CanDisableOnSite(); | |
| 79 }; | 85 }; |
| 80 | 86 |
| 81 /** | 87 /** |
| 82 * Temporary class used during refactoring. | 88 * Temporary class used during refactoring. |
| 83 * This is the definition previously in AdblockPlusTab.h | 89 * This is the definition previously in AdblockPlusTab.h |
| 84 * Defining this class during refactoring alleviates the need to rename CPluginT abBase in the first change set. | 90 * Defining this class during refactoring alleviates the need to rename CPluginT abBase in the first change set. |
| 85 */ | 91 */ |
| 86 class CPluginTab : public CPluginTabBase | 92 class CPluginTab : public CPluginTabBase |
| 87 { | 93 { |
| 88 | 94 |
| 89 public: | 95 public: |
| 90 CPluginTab(CPluginClass* plugin) : CPluginTabBase(plugin) {}; | 96 CPluginTab(CPluginClass* plugin) : CPluginTabBase(plugin) {}; |
| 91 ~CPluginTab() {}; | 97 ~CPluginTab() {}; |
| 92 }; | 98 }; |
| 93 | 99 |
| 94 | 100 |
| 95 | 101 |
| 96 #endif // _PLUGIN_TAB_BASE_H_ | 102 #endif // _PLUGIN_TAB_BASE_H_ |
| OLD | NEW |