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

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

Issue 29334397: Issue #2230, #3391 - Load filters on "download begin" event
Patch Set: address comments Created Feb. 3, 2016, 6:04 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/PluginClass.cpp ('k') | src/plugin/PluginFilter.h » ('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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 template <class T> 97 template <class T>
98 bool CPluginDomTraverserBase<T>::IsEnabled() 98 bool CPluginDomTraverserBase<T>::IsEnabled()
99 { 99 {
100 return CPluginSettings::GetInstance()->IsPluginEnabled(); 100 return CPluginSettings::GetInstance()->IsPluginEnabled();
101 } 101 }
102 102
103 103
104 template <class T> 104 template <class T>
105 void CPluginDomTraverserBase<T>::TraverseDocument(IWebBrowser2* pBrowser, const std::wstring& indent) 105 void CPluginDomTraverserBase<T>::TraverseDocument(IWebBrowser2* pBrowser, const std::wstring& indent)
106 { 106 {
107 DWORD res = WaitForSingleObject(filterSet->hideFiltersLoadedEvent, ENGINE_STAR TUP_TIMEOUT);
108 if (!IsEnabled()) return; 107 if (!IsEnabled()) return;
109 108
110 VARIANT_BOOL isBusy; 109 VARIANT_BOOL isBusy;
111 if (SUCCEEDED(pBrowser->get_Busy(&isBusy))) 110 if (SUCCEEDED(pBrowser->get_Busy(&isBusy)))
112 { 111 {
113 if (isBusy != VARIANT_FALSE) 112 if (isBusy != VARIANT_FALSE)
114 { 113 {
115 return; 114 return;
116 } 115 }
117 } 116 }
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 } 399 }
401 } 400 }
402 } 401 }
403 } 402 }
404 } 403 }
405 } 404 }
406 } 405 }
407 406
408 407
409 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_ 408 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_
OLDNEW
« no previous file with comments | « src/plugin/PluginClass.cpp ('k') | src/plugin/PluginFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld